question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected

See original GitHub issue

Hey,

great work with the library!

I am trying to install it, but I am getting a cuda error. I have been using pytorch the gpus wihout problems until now.

The full line reads: RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /opt/conda/conda-bld/pytorch_1570910687650/work/aten/src/THC/THCGeneral.cpp:50

I am using python 3.7.3 and pytorch 1.3.

the output of nvidia_smi is: Fri Nov 15 16:13:25 2019
±----------------------------------------------------------------------------+ | NVIDIA-SMI 418.56 Driver Version: 418.56 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 GeForce GTX TIT… On | 00000000:04:00.0 Off | N/A | | 22% 41C P8 18W / 250W | 11MiB / 12212MiB | 0% Default | ±------------------------------±---------------------±---------------------+ | 1 GeForce GTX TIT… On | 00000000:06:00.0 Off | N/A | | 22% 38C P8 17W / 250W | 11MiB / 12212MiB | 0% Default | ±------------------------------±---------------------±---------------------+ | 2 GeForce GTX 108… On | 00000000:07:00.0 Off | N/A | | 31% 34C P8 8W / 250W | 1283MiB / 11178MiB | 0% Default | ±------------------------------±---------------------±---------------------+ | 3 GeForce GTX 108… On | 00000000:08:00.0 Off | N/A | | 31% 33C P8 8W / 250W | 10MiB / 11178MiB | 0% Default | ±------------------------------±---------------------±---------------------+ | 4 TITAN X (Pascal) On | 00000000:0C:00.0 Off | N/A | | 23% 35C P8 8W / 250W | 10MiB / 12196MiB | 0% Default | ±------------------------------±---------------------±---------------------+ | 5 TITAN X (Pascal) On | 00000000:0E:00.0 Off | N/A | | 23% 30C P8 8W / 250W | 10MiB / 12196MiB | 0% Default | ±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |============================================================| | 2 14534 C …zzi/anaconda3/envs/tmtm/bin/python3.7 1273MiB | ±----------------------------------------------------------------------------+

Any suggestions?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

4reactions
sandeep22-vcommented, Jan 18, 2021

Where should I add CUDA_VISIBLE_DEVICES=2 ???in the terminal or in some python file???

4reactions
Haveonerivercommented, Mar 6, 2020

@VictorZuanazzi Hi I have encountered the same problem. Can you elaborate on your solution?thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

no CUDA-capable device is detected at ..\aten\src\THC ...
The original error message points to a CUDA call, which wasn't compiled for the current GPU architecture. Are you running some custom CUDA...
Read more >
cuda runtime error (100) : no CUDA-capable device is ...
I'm not nearly as familiar with tensorflow as I am with pytorch, but that error seems to indicate that tensorflow isn't installed properly....
Read more >
No CUDA-capable device is detected on tao detectnet_v2 ...
Hi @Morganh ,. I tried with -- runtime=nvidia , but there is no runtime called nvidia. docker: Error response from daemon: Unknown runtime...
Read more >
No CUDA GPU detected! no CUDA-capable device is detected
The above error occurs when I specifically set CUDA_VISIBLE_DEVICES=2 (the number of video cards on the system). If I do not specify this...
Read more >
No CUDA capable device is detected - Reddit
CUDA is exclusive to a GPU and that too a GPU manufactured by Nvidia. Please check that you have a Nvidia GPU installed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found