Skip to content
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 #30

Open
InTheFuture7 opened this issue Aug 1, 2024 · 3 comments

Comments

@InTheFuture7
Copy link

Hello, this is a great job! However, when I was training with the vg100k dataset, I encountered an error: RuntimeError: CUDA error: no kernel image is available for execution on the device. After reviewing some information, I found that the possible reason is that the pytorch version does not support my gpu. Have you ever encountered this problem and is there any solution?

My gpu is GeForce RTX 4090. The torch version and other python extensions are consistent with requeirments.txt.

@InTheFuture7
Copy link
Author

run torch.tensor([1.0, 2.0]).cuda() return RuntimeError: CUDA error: no kernel image is available for execution on the device

run torch.cuda.is_available() return True

@InTheFuture7
Copy link
Author

I just ran command python collect_env.py, which can output relevant system environment infomation. I got this info :NVIDIA GeForce RTX 4090 with CUDA capability sm_89 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70. So, I will try to install a newer version of pytorch.

@InTheFuture7
Copy link
Author

It works. The model is training!

I choose to install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant