installed CUDA but unable to run gpuarrays

조회 수: 26(최근 30일)
HIMANSHU RATHORE
HIMANSHU RATHORE 2020년 1월 22일
댓글: Nurul Farhana Mohd Fadzli 2022년 12월 31일
i WISH TO USE THE PARALLEL COMPUTING TOOLBOX IN MY CODE. SPECIFICALLY "gpuarrays". MY MATLAB VERSION IS MATLAB R2019B. I have installed CUDA 10.1 from NVIDIA ALREADY. BUT STILL WHEN TRY EXECUTING THE CODE THE FOLLOWING ERROR IS SHOWN:
Unable to load CUDA driver. The library name used was nvcuda.dll. The error was:
The specified module could not be found.
Update or reinstall your GPU driver. For more information on GPU support, see GPU Support by Release.
DONT KNOW WHAT TO DO! HELP PLEASE.

답변(1개)

Jason Ross
Jason Ross 2020년 1월 22일
Did you install the CUDA toolkit only? You also need to install the driver.
To see if the driver is loaded properly run "nvidia-smi" on Linux or C:\Program Files\Nvidia corporation\nvsmi\nvidia-smi.exe on Windows. You run these commands in a command shell. If the driver and GPU are installed you should see something like the following. If the command isn't found or doesn't show something similar to below, it sounds like your driver isn't installed properly.
On a side note, the use of all caps is considered shouting/yelling.
Wed Jan 22 10:47:58 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.40.04 Driver Version: 418.40.04 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla K40m Off | 00000000:84:00.0 Off | 0 |
| N/A 29C P0 64W / 235W | 0MiB / 11441MiB | 80% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
  댓글 수: 3
Nurul Farhana Mohd Fadzli
Nurul Farhana Mohd Fadzli 2022년 12월 31일
@Jason Ross I got the same error "Unable to load CUDA driver. The library name used was nvcuda.dll. The error was: The specified module could not be found. Update or reinstall your GPU driver. For more information on GPU support"
But I didnt install the CUDA Toolkit and driver in my host laptop. As you said " The Toolkit and SDK are not required to be installed on your host to use MATLAB with a GPU. Only the driver is required. "
So what should I do, do I need to install the CUDA driver?

댓글을 달려면 로그인하십시오.

범주

Find more on Get Started with GPU Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by