installed CUDA but unable to run gpuarrays

28 views (last 30 days)
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.

Answers (1)

Jason Ross
Jason Ross on 22 Jan 2020
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 Comments
Nurul Farhana Mohd Fadzli
Nurul Farhana Mohd Fadzli on 31 Dec 2022 at 10:54
@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?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!