- 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 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (2)
Jack
le 25 Mar 2023
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 commentaires
Joss Knight
le 4 Avr 2023
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
le 4 Avr 2023
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 commentaires
Voir également
Catégories
En savoir plus sur Get Started with GPU Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!