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

no kernel image is available for execution on the device #8

Open
YanhaoZhang opened this issue Nov 26, 2023 · 2 comments
Open

no kernel image is available for execution on the device #8

YanhaoZhang opened this issue Nov 26, 2023 · 2 comments

Comments

@YanhaoZhang
Copy link

Thanks for releasing the code. I found that after switching the device to cuda:0, I got the following error. May I ask for any suggestions, please?

  File "/home/yanhao/anaconda3/envs/nailseg/lib/python3.8/site-packages/torch/nn/modules/batchnorm.py", line 148, in forward
    self.num_batches_tracked.add_(1)  # type: ignore[has-type]
RuntimeError: CUDA error: no kernel image is available for execution on the device
@EdsonWong
Copy link

Thanks for releasing the code. I found that after switching the device to cuda:0, I got the following error. May I ask for any suggestions, please?

  File "/home/yanhao/anaconda3/envs/nailseg/lib/python3.8/site-packages/torch/nn/modules/batchnorm.py", line 148, in forward
    self.num_batches_tracked.add_(1)  # type: ignore[has-type]
RuntimeError: CUDA error: no kernel image is available for execution on the device

your cuda and pytorch version is not suitable to your GPU

@ademakdogan
Copy link
Owner

Thanks for releasing the code. I found that after switching the device to cuda:0, I got the following error. May I ask for any suggestions, please?

  File "/home/yanhao/anaconda3/envs/nailseg/lib/python3.8/site-packages/torch/nn/modules/batchnorm.py", line 148, in forward
    self.num_batches_tracked.add_(1)  # type: ignore[has-type]
RuntimeError: CUDA error: no kernel image is available for execution on the device

Verify that your GPU is compatible with the CUDA version and PyTorch requirements. Older or incompatible GPUs may encounter issues with CUDA execution.

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

3 participants