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

조회 수: 35 (최근 30일)
Ziqi Sun
Ziqi Sun 2023년 3월 24일
댓글: Joss Knight 2023년 4월 4일
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.

답변 (2개)

Jack
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:
  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
Ziqi Sun
Ziqi Sun 2023년 3월 25일
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 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
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.

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by