nails_segmentation icon indicating copy to clipboard operation
nails_segmentation copied to clipboard

no kernel image is available for execution on the device

Open YanhaoZhang opened this issue 2 years ago • 2 comments

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

YanhaoZhang avatar Nov 26 '23 07:11 YanhaoZhang

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

EdsonWong avatar Nov 29 '23 03:11 EdsonWong

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.

ademakdogan avatar Feb 12 '24 14:02 ademakdogan