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: No CUDA GPUs are available #28

Open
hiepbk opened this issue Apr 11, 2022 · 1 comment
Open

RuntimeError: No CUDA GPUs are available #28

hiepbk opened this issue Apr 11, 2022 · 1 comment

Comments

@hiepbk
Copy link

hiepbk commented Apr 11, 2022

Hello everyone,
I got an error when I runned this command: python -m btcdet.datasets.multifindbestfit
Its traceback:
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
Traceback (most recent call last):
File "/home/hiepubt/anaconda3/envs/btc/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/hiepubt/anaconda3/envs/btc/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/hiepubt/BtcDet/btcdet/datasets/multifindbestfit.py", line 21, in
from ..ops.chamfer_distance import ChamferDistance
File "/home/hiepubt/BtcDet/btcdet/ops/chamfer_distance/init.py", line 1, in
from .chamfer_distance import ChamferDistance
File "/home/hiepubt/BtcDet/btcdet/ops/chamfer_distance/chamfer_distance.py", line 11, in
cd = load(name="cd",sources=[cpp_file,cu_file])
File "/home/hiepubt/anaconda3/envs/btc/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 980, in load
keep_intermediates=keep_intermediates)
File "/home/hiepubt/anaconda3/envs/btc/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1185, in _jit_compile
with_cuda=with_cuda)
File "/home/hiepubt/anaconda3/envs/btc/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1276, in _write_ninja_file_and_build_library
with_cuda=with_cuda)
File "/home/hiepubt/anaconda3/envs/btc/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1602, in _write_ninja_file_to_build_library
cuda_flags = common_cflags + COMMON_NVCC_FLAGS + _get_cuda_arch_flags()
File "/home/hiepubt/anaconda3/envs/btc/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1407, in _get_cuda_arch_flags
capability = torch.cuda.get_device_capability()
File "/home/hiepubt/anaconda3/envs/btc/lib/python3.7/site-packages/torch/cuda/init.py", line 291, in get_device_capability
prop = get_device_properties(device)
File "/home/hiepubt/anaconda3/envs/btc/lib/python3.7/site-packages/torch/cuda/init.py", line 296, in get_device_properties
_lazy_init() # will define _get_device_properties
File "/home/hiepubt/anaconda3/envs/btc/lib/python3.7/site-packages/torch/cuda/init.py", line 172, in _lazy_init
torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available
Can anyone help me about this issue?

@123jyw
Copy link

123jyw commented May 14, 2022

Please ask if you have solved it now

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

2 participants