Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected #8

Open
theartsnetwork opened this issue Aug 2, 2021 · 0 comments

Comments

@theartsnetwork
Copy link

theartsnetwork commented Aug 2, 2021

When I am trying to run this on Colab

!bash /content/CompositionalGAN/scripts/chair_table/train_objCompose_paired.sh

It gives following error

THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=50 error=38 : no CUDA-capable device is detected
Traceback (most recent call last):
File "train_composition.py", line 14, in
opt = TrainOptions().parse()
File "/content/CompositionalGAN/options/base_options.py", line 86, in parse
torch.cuda.set_device(self.opt.gpu_ids[0])
File "/usr/local/lib/python3.7/dist-packages/torch/cuda/init.py", line 281, in set_device
torch._C._cuda_setDevice(device)
File "/usr/local/lib/python3.7/dist-packages/torch/cuda/init.py", line 179, in _lazy_init
torch._C._cuda_init()
RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at /pytorch/aten/src/THC/THCGeneral.cpp:50

Please help. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant