-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Not compiled with GPU support #230
Comments
When you compiled |
I have the same error as HLearning. I have built maskrcnn with CUDA 9.2 enabled with python3 setup.py build develop. |
Are you running in docker? |
No, I followed the Option 1: Step-by-step installation. |
Can you try uninstalling and installing again |
Yeah that's what I thought, I uninstalled it and manually removed all dependencies. It's still not working after trying to reinstall. I will try to install via install instead of build develop. Will keep you posted |
inside the |
I get Normal install instead of build develop also gives the same error. |
@Nacho114 what's the code that you are trying to run? And what is the full error message? |
I am running a modified version of maskrcnn-benchmark/tools/train_net.py to run on my custom data loader. (I followed the instructions to make the custom dataset). The full error message is:
|
the |
@miguelvr |
we are running against the same error with docker (although it works for me in our cluster) |
My environment:
I tried to run other pytorch code, CUDA is working |
The problem has been solved. |
@Nacho114 is the solution from @HLearning the right one for you? |
Currently reinstalling from scratch (torch included), if that does not work I will see if I can get conda working on the cluster to try the solution proposed by HLearning. Will report back when I'm done. |
yes |
@Nacho114 one thing to check: verify that the python that you are using to run the
should help you there, as well as the pytorch versions / location in each one of the interpreters |
I've tried to be meticulous with witch python I'm using.
At first glance this seems to be a problem on my side, so I will report back if it works after this. |
This error is a bug in PyTorch that has normally been fixed with the latest version that is available. Which version of PyTorch are you running? |
torch version = |
Hum, weird. I believe this problem should have been fixed with your version of PyTorch. |
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. |
Your solution also works for me!@randomwalk10 |
Glad to hear! I guess "python setup.py clean" does NOT clean everything and we have to manually delete "build/" in the end LOL. |
Just for anybody else creating a docker image of this that runs into this problem -- with an environment with a valid cuda setup that's not being picked up, setting the environment variable FORCE_CUDA to 1 before building/installing the project resolved this issue for me |
I run into the problem when using pycharm to debug remotely. And in my case the problem is caused by the file SOURCES.txt under the folder maskrcnn_benchmark.egg-info. |
This is right! After re-install the CUDA, we must re-build! |
|
Thanks. Solve my problem too. I also counter the "Not compiled with GPU" problem. Actually I have successfully run the demo before. But later I move the file to another folder. And just following the INSTALL.MD to rebuild it doesn't work. |
❓ 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)
The text was updated successfully, but these errors were encountered: