installed CUDA but unable to run gpuarrays

15 次查看(过去 30 天)
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 个评论
Jason Ross
Jason Ross 2020-1-22
Go to nvidia.com and download/install the latest driver for your GPU. This should have ideally happened when you installed your GPU -- Windows should have recognized the card and automatically installed the driver when the machine booted (unless you have that disabled, in which case you need to download/install it manually). The installation procedure is performed by running the driver .exe and clicking Next.
The driver is the only thing that needs to be installed for MATLAB to recognize the GPU, if you want to do a custom install and not install nVidia's extra stuff that comes with the driver.
After installation, nvidia-smi.exe should be in the folder I mentioned before and MATLAB should find it.
The Toolkit and SDK are not required to be installed on your host to use MATLAB with a GPU. Only the driver is required.
Another thing to check is the Device Manager to see if the GPU is found and functioning normally. I have had cases where I didn't seat the GPU properly in the PCI slot, or where the external power connection(s) were not fully seated on the GPU or motherboard. In some of these cases the Device Manager would show it with a warning triangle, or the GPU itself might report that it doesn't have enough power to operate.
Nurul Farhana Mohd Fadzli
@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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 GPU Computing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by