- Make sure that your GPU is CUDA-enabled and compatible with your version of MATLAB. You can check the GPU compatibility information for MATLAB by referring to the documentation.
- Verify that you have installed CUDA and cuSOLVER correctly. Check that the CUDA installation path is added to your system's environment variables. Additionally, you can try reinstalling CUDA to ensure that all required components are installed correctly.
- Check if there are any driver updates available for your GPU. You can check for driver updates from the GPU manufacturer's website or by using a third-party driver updater tool.
- If the issue persists, try running MATLAB with the "-nodisplay" option to disable the GPU and run the function on the CPU. This will help you identify if the issue is with the GPU or the function itself.
Error using gpuArray/norm Failed to initialize GPU cuSOLVER library.
6 次查看(过去 30 天)
显示 更早的评论
When I use function stftmag2sig() and then function call norm() internally, the error pops up as "Failed to initialize GPU cuSOLVER library." I intalled the latest CUDA12.1 as well as CUDA10.1. How does this come? And how can I solve this? I check the environment variable as well and CUDAs are on that.
0 个评论
回答(2 个)
Jack
2023-3-25
Hello Ziqi,
The error message "Failed to initialize GPU cuSOLVER library" suggests that MATLAB is unable to access the cuSOLVER library that is required for GPU computation. This could be due to a variety of reasons, such as an incorrect installation of CUDA or a missing driver update for the GPU.
To troubleshoot this issue, you can try the following steps:
2 个评论
Joss Knight
2023-4-4
Hi Jack. No offence, but are you a bot? Some of your suggestions here are extremely suspect, for instance you seem to think that running in nodisplay mode will prevent MATLAB from using the GPU for computation. MathWorks takes a dim view of the use of bots on Answers and I would probably have to report you.
Joss Knight
2023-4-4
cuSolver is an NVIDIA library that is included with your MATLAB installation. It makes no difference what versions of the CUDA toolkit you have installed. MATLAB does not use or require any external library installation to use the GPU except for a graphics driver.
As it is, this was a known issue with certain cards and drivers. Glad to hear that upgrading MATLAB or your driver fixed the problem.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with GPU Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!