Effacer les filtres
Effacer les filtres

Error using gpuArray/norm Failed to initialize GPU cuSOLVER library.

15 vues (au cours des 30 derniers jours)
Ziqi Sun
Ziqi Sun le 24 Mar 2023
Commenté : Joss Knight le 4 Avr 2023
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.

Réponses (2)

Jack
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:
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  2 commentaires
Ziqi Sun
Ziqi Sun le 25 Mar 2023
Thank you for the help! I actually managed to fix this problem by simply reinstall matlab after I have all CUDAs installed. Really appreciate your answering anyway!
Joss Knight
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.

Connectez-vous pour commenter.


Joss Knight
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.

Catégories

En savoir plus sur GPU Computing dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by