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.

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:closed
  • Created 5 years ago
  • Reactions:11
  • Comments:33 (11 by maintainers)

github_iconTop GitHub Comments

34reactions
randomwalk10commented, Mar 16, 2019

Will do, thanks.

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.

4reactions
fmassacommented, Nov 29, 2018

When you compiled maskrcnn-benchmark, you probably didn’t have a PyTorch with CUDA enabled. How did you install maskrcnn-benchmark?

Read more comments on GitHub >

github_iconTop Results From Across the Web

RuntimeError: Not compiled with GPU support · Issue #1406
I have a problem when testing with demo: python demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml ...
Read more >
RuntimeError: Not compiled with GPU support - Stack Overflow
I'm trying to run a code and I got the error: RuntimeError: Not compiled with GPU support.
Read more >
Installation Guide — xgboost 0.80 documentation
XGBoost can be built with GPU support for both Linux and Windows using CMake. GPU support works with the Python package as well...
Read more >
Cant install pytorch gpu version via conda
RuntimeError: Not compiled with GPU support. I'm going to re-install it now that I have the right version of PyTorch going.
Read more >
Detectron2 GPU - Food Recognition Challenge - AIcrowd Forum
Hi! Does someone faced this error “RuntimeError: Not compiled with GPU support” using detectron2? I tried docker images from pytorch and ...
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