No device supporting CUDA was found
4 views (last 30 days)
Show older comments
Running matlab and entering:
>> gx = gpuArray(rand(2^16,1))
Error using gpuArray (line 28)
No device supporting CUDA was found.
I have a unix system with
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Matlab R2011b
/etc/X11/xorg.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Cuda is installed in /usr/local
Cuda Language Front End
Portions Copyright (c) 2005-2012 NVIDIA Corporation
Portions Copyright (c) 1988-2012 Edison Design Group Inc.
Based on Edison Design Group C/C++ Front End, version 4.3.1 (Apr 5 2012 00:25:22)
Cuda compilation tools, release 4.2, V0.2.1221
How do I find the device to support CUDA?
nvidia-smi --query
FATAL: Error inserting nvidia (/lib/modules/2.6.32-279.5.2.el6.x86_64/weak-updates/nvidia/nvidia.ko): No such device
NVIDIA: failed to load the NVIDIA kernel module.
Nvidia-smi has failed because it couldn't communicate with NVIDIA driver. Make sure that latest NVIDIA driver is installed and running.
Do I need to install a certain NVIDIA driver?
0 Comments
Answers (1)
Jason Ross
on 26 Sep 2012
Edited: Jason Ross
on 26 Sep 2012
You need to download the most recent CUDA driver from nVidia's site and install it. As of right now, that's 304.51.
Also, what GPU are you running? It needs to be Compute Capability 1.3 or higher:
From the error message above, it looks like the CUDA toolkit/SDK is installed, but to use it, you also need to install the CUDA driver itself on the system. The nvidia.ko file is the driver that that system needs to have loaded to access the GPU.
When things are installed correctly, nvidia-smi should list all the GPUs in the system and a lot of information about their current state (fan speed, temp, etc)
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!