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.

Kernel not compiled with GPU support

See original GitHub issue

❓ Questions and Help

General questions about detectron2.

Hi, when train models with detectron2, the encountered error is shown below:

RuntimeError: Not compiled with GPU support (ROIAlign_forward at /mnt/lustre/liang1/project/detectron2/detectron2/layers/csrc/ROIAlign/ROIAlign.h:71)

I have install detectron2 with python setup.py build develop, will it compile only with CPU by default? thx.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

19reactions
dale1202commented, Oct 18, 2019

i run python3 -c ‘import torch; from torch.utils.cpp_extension import CUDA_HOME; print(torch.cuda.is_available(), CUDA_HOME)’, it return True。 and i run detectron2, it still return “RuntimeError: Not compiled with GPU support”, Have you solved it? @ppwwyyxx

16reactions
dale1202commented, Oct 18, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting RuntimeError: Not compiled with GPU ...
I am trying to run the code from: https://github.com/cvlab-stonybrook/ContactHands on Windows 10. It uses detectron2 and pytorch with CUDA.
Read more >
NVIDIA CUDA Installation Guide for Linux
NVIDIA CUDA Installation Guide for Linux. The installation instructions for the CUDA Toolkit on Linux. 1. Introduction . CUDA® is a parallel...
Read more >
Installation — detectron2 0.6 documentation
"nvcc not found" or "Not compiled with GPU support" or "Detectron2 CUDA ... "invalid device function" or "no kernel image is available for...
Read more >
Troubleshooting - CUDA.jl
Not all of Julia is supported by CUDA.jl. Several commonly-used features, like strings or exceptions, will not compile to GPU code, because of...
Read more >
Install TensorFlow with pip
Note: The error message "Status: device kernel image is invalid" indicates that the TensorFlow package does not contain PTX for your architecture. You...
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