Sometimes, the system make the device not usable by the user by changing the permission or cgroup or the env variable: CUDA_VISIBLE_DEVICES
Can you check that you can run the cuda example? To make sure if the problem is in your config (what I think). Fred On Fri, Feb 10, 2017 at 8:49 AM Michael Waldron <[email protected]> wrote: > I have installed the latest stable theano using 'pip install theano', > however it cannot see the gpus on my system. > > >>> import theano > WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not > available (error: Unable to get the number of gpus available: no > CUDA-capable device is detected) > >>> > > $ echo $THEANO_FLAGS > cuda.root=/usr/local/cuda,device=gpu,floatX=float32 > > I have tried using both Python 2.7.12 and 3.5.1, same result. > OS RHEL 7 > CUDA 8 is installed and the OS sees the gpus. > > $ nvcc -V > nvcc: NVIDIA (R) Cuda compiler driver > Copyright (c) 2005-2016 NVIDIA Corporation > Built on Sun_Sep__4_22:14:01_CDT_2016 > Cuda compilation tools, release 8.0, V8.0.44 > > $ nvidia-smi > Fri Feb 10 08:33:46 2017 > > +-----------------------------------------------------------------------------+ > | NVIDIA-SMI 367.48 Driver Version: 367.48 > | > > |-------------------------------+----------------------+----------------------+ > | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. > ECC | > | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute > M. | > > |===============================+======================+======================| > | 0 GeForce GTX 1080 Off | 0000:04:00.0 Off | > N/A | > | 27% 28C P0 37W / 180W | 0MiB / 8113MiB | 0% > Default | > > +-------------------------------+----------------------+----------------------+ > | 1 GeForce GTX 1080 Off | 0000:05:00.0 Off | > N/A | > | 27% 29C P0 39W / 180W | 0MiB / 8113MiB | 0% > Default | > > +-------------------------------+----------------------+----------------------+ > | 2 GeForce GTX 1080 Off | 0000:08:00.0 Off | > N/A | > | 27% 29C P0 39W / 180W | 0MiB / 8113MiB | 0% > Default | > > +-------------------------------+----------------------+----------------------+ > | 3 GeForce GTX 1080 Off | 0000:09:00.0 Off | > N/A | > | 27% 28C P0 39W / 180W | 0MiB / 8113MiB | 0% > Default | > > +-------------------------------+----------------------+----------------------+ > | 4 GeForce GTX 1080 Off | 0000:85:00.0 Off | > N/A | > | 27% 29C P0 39W / 180W | 0MiB / 8113MiB | 0% > Default | > > +-------------------------------+----------------------+----------------------+ > | 5 GeForce GTX 1080 Off | 0000:86:00.0 Off | > N/A | > | 27% 29C P0 39W / 180W | 0MiB / 8113MiB | 0% > Default | > > +-------------------------------+----------------------+----------------------+ > | 6 GeForce GTX 1080 Off | 0000:89:00.0 Off | > N/A | > | 27% 27C P0 39W / 180W | 0MiB / 8113MiB | 0% > Default | > > +-------------------------------+----------------------+----------------------+ > | 7 GeForce GTX 1080 Off | 0000:8A:00.0 Off | > N/A | > | 27% 28C P0 39W / 180W | 0MiB / 8113MiB | 0% > Default | > > +-------------------------------+----------------------+----------------------+ > > > > +-----------------------------------------------------------------------------+ > | Processes: GPU > Memory | > | GPU PID Type Process name Usage > | > > |=============================================================================| > | No running processes found > | > > +-----------------------------------------------------------------------------+ > > Any assistance would be appreciated. > > > -- > > --- > You received this message because you are subscribed to the Google Groups > "theano-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
