-
Notifications
You must be signed in to change notification settings - Fork 1
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
RuntimeError: CUDA error: no kernel image is available for execution on the device #10
Comments
It's weird. Maybe you should try on some other examples like mnist, and see whether the problem maintains. |
I notice your NVCC is not available. I think you should install some dependencies. |
If I type nvcc -V in cmd, it can be normally displayed. The displayed content is as follows: I wonder if it's because I didn't install visual studio, or what dependencies do I need to install for "nvcc is not avaliable"? Went to the Internet to find relevant information but did not get a solution. It's so much trouble for you!!! |
Can it work on other pytorch examples like mnist with GPU? |
|
So it works? |
It also runs with the same error: cuda error |
Try your environment on mnist program. |
I tested it on the official pytorch implementation of mnist code, and it ran properly without error Test set: Average loss: 0.0260, Accuracy: 9920/10000 (99%) |
on GPU? |
It is really weird. |
Ok, I will try again, thank you very much for your patient answer!! I'll share the solution if I can solve it, but I don't really believe in my own ability. hahahahahaha |
A problem occurred to me. My computer runs windows and I find that other people seem to install the environment more smoothly in linux. I wonder if it is a problem that the compatibility with windows system is still insufficient |
Yup. Windows is not possible, which is warned in the mmdet github page. |
I have checked that the mapping between my cuda version and torch version is correct, and that the mmcv and mmdet versions are set according to the environment of the author of the source code. Why is there still a RuntimeError: CUDA error: no kernel image is available for execution on the device. My computer graphics card is 3060, and the computing power is sufficientRuntimeError: CUDA error: no kernel image is available for execution on the device
my environment:
sys.platform: win32
Python: 3.7.16 (default, Jan 17 2023, 16:06:28) [MSC v.1916 64 bit (AMD64)]
CUDA available: True
GPU 0: NVIDIA GeForce RTX 3060 Laptop GPU
CUDA_HOME: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1
NVCC: Not Available
GCC: n/a
PyTorch: 1.8.1+cu111
PyTorch compiling details: PyTorch built with:
TorchVision: 0.9.1+cu111
OpenCV: 4.7.0
MMCV: 1.4.0
MMCV Compiler: MSVC 192930137
MMCV CUDA Compiler: 11.1
MMDetection: 2.17.0+
The text was updated successfully, but these errors were encountered: