-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Kernel not compiled with GPU support #55
Comments
It will compile with CPU only, only if pytorch cannot find gpus/cuda at the time you compile it.
|
it' s very strange that:
and the outputs:
my cuda version:
but when run commond above:
it still return false. |
Since it is an pytorch/cuda installation issue, please ask in pytorch forum or issues instead. Thanks! |
I have the same issue when I run demo in jupyter notebook: my pytorch is 1.3 |
You should uninstall and reinstall detectron2, when |
@zhudd-hub I meet a similar problem as same as yours. Have you solved it? |
i run python3 -c 'import torch; from torch.utils.cpp_extension import CUDA_HOME; print(torch.cuda.is_available(), CUDA_HOME)', it return True。 |
The same question! Have u solved it? |
i have solved it, reinstall detectron2 : remove bulid file , execute "python setup.py build develop" again,make sure your cuda version is match with pytorch version @ppwwyyxx |
use cuda9.2,use "pip3 install torch==1.3.0+cu92 torchvision==0.4.1+cu92 -f https://download.pytorch.org/whl/torch_stable.html" to install pytorch。execute "nvcc --version" check cuda version |
|
If you can't use nvcc, then you can't install detectron2. |
I can't use nvcc, it returns "apt install nvidia-cuda-toolkit", which needs root permission. |
I ask root to install cuda. And I met the issue " |
check two things:
reference: https://zhuanlan.zhihu.com/p/93278639 |
#if meet RuntimeError('Not compiled with GPU support# |
In case someone is still wondering how to solve it. This is what I tried:
where ABC is the cuda version found in step 1) i.e. ABC = 101 (cuda 10.1) and 100 (for cuda 10.0) Following this I was able to solve this error. Hope it helps! |
remember to remove 'build' dir before reinstall detectron2. |
❓ Questions and Help
General questions about detectron2.
Hi, when train models with detectron2, the encountered error is shown below:
I have install detectron2 with
python setup.py build develop
, will it compile only with CPU by default? thx.The text was updated successfully, but these errors were encountered: