Not compiled with GPU support
See original GitHub issue❓ Questions and Help
RuntimeError: Not compiled with GPU support (nms at /home/hjl/PyTorch_MaskRcnn/maskrcnn-benchmark/maskrcnn_benchmark/csrc/nms.h:22) frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x45 (0x7fda63bc0915 in /home/hjl/anaconda3/envs/pytorch1.0/lib/python3.7/site-packages/torch/lib/libc10.so) frame #1: nms(at::Tensor const&, at::Tensor const&, float) + 0xd4 (0x7fda5ee41954 in /home/hjl/PyTorch_MaskRcnn/maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython-37m-x86_64-linux-gnu.so) frame #2: <unknown function> + 0x14e1d (0x7fda5ee4de1d in /home/hjl/PyTorch_MaskRcnn/maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython-37m-x86_64-linux-gnu.so) frame #3: <unknown function> + 0x12291 (0x7fda5ee4b291 in /home/hjl/PyTorch_MaskRcnn/maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython-37m-x86_64-linux-gnu.so) <omitting python frames> frame #62: __libc_start_main + 0xe7 (0x7fdaa4e11b97 in /lib/x86_64-linux-gnu/libc.so.6)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:33 (11 by maintainers)
Top GitHub Comments
Hi, I encountered the same error as you did. I reinstalled everything but had no luck. Then I randomly deleted folder “build/” under the maskrcnn_benchmark and rebuilt the project with setup.py. Now everything works.
This solved my problem. Hope it solve yours too.
When you compiled
maskrcnn-benchmark
, you probably didn’t have a PyTorch with CUDA enabled. How did you installmaskrcnn-benchmark
?