Re: cupy.cuda.runtime.CUDARuntimeError: cudaErrorNoDevice: no CUDA-capable device is detected

615 views
Skip to first unread message
Message has been deleted

Kenichi Maehashi

unread,
Mar 19, 2019, 12:34:30 AM3/19/19
to CuPy User Group
Hi,

* Could you share the output of `python -c 'import cupy; cupy.show_config()'`?
* Could you try using `pip install cupy-cuda90` instead of `pip install cupy`?
* Please make sure that CUDA_VISIBLE_DEVICES environment variable is not set (`env | grep CUDA_VISIBLE_DEVICES`)

Bhamare Harshal

unread,
Mar 19, 2019, 6:39:42 AM3/19/19
to CuPy User Group
>>> import cupy
>>> cupy.show_config()
CuPy Version          : 5.3.0
CUDA Root             : /usr/local/cuda/bin:
CUDA Build Version    : 9000
CUDA Driver Version   : 9000
CUDA Runtime Version  : CUDARuntimeError('cudaErrorNoDevice: no CUDA-capable device is detected',)
cuDNN Build Version   : None
cuDNN Version         : None
NCCL Build Version    : 2307
NCCL Runtime Version  : 2307

Kenichi Maehashi

unread,
Mar 19, 2019, 7:02:51 AM3/19/19
to CuPy User Group

> (.see-master) root@awsml04:~# env | grep CUDA_VISIBLE_DEVICES
> CUDA_VISIBLE_DEVICES=1

Please unset `CUDA_VISIBLE_DEVICES`. You have only one device (GPU #0) but you are specifying to use GPU #1 which does not exist.

Bhamare Harshal

unread,
Mar 19, 2019, 7:11:12 AM3/19/19
to CuPy User Group
I unset `CUDA_VISIBLE_DEVICES` then same issues will come .

Bhamare Harshal

unread,
Mar 21, 2019, 7:16:58 AM3/21/19
to CuPy User Group
Please help still issue persist

Bhamare Harshal

unread,
Mar 22, 2019, 2:41:06 AM3/22/19
to CuPy User Group
Resolved that issue right now 

sarw...@ku.th

unread,
Oct 3, 2019, 5:22:50 AM10/3/19
to CuPy User Group
how and where to specify that i have one GPU. i am facing the same issue.

python -c 'import cupy; cupy.show_config()'
CuPy Version          : 6.4.0
CUDA Root             : /usr/local/cuda-10.0
CUDA Build Version    : 10000
CUDA Driver Version   : 10010
CUDA Runtime Version  : 10000
cuDNN Build Version   : 7603
cuDNN Version         : 7603
NCCL Build Version    : 2402
NCCL Runtime Version  : 2402

Kenichi Maehashi

unread,
Oct 3, 2019, 7:44:58 AM10/3/19
to CuPy User Group

sarw...@ku.th

unread,
Oct 8, 2019, 3:40:02 AM10/8/19
to CuPy User Group
I tried that but still the same issue. My GPU is working find and i test every in python cupy. but cupy issue error.
Reply all
Reply to author
Forward
0 new messages