# HF Space: RuntimeError: CUDA error: no kernel image is available for execution on the device

**URL:** <https://discuss.huggingface.co/t/hf-space-runtimeerror-cuda-error-no-kernel-image-is-available-for-execution-on-the-device/25039>\
**Category:** Spaces\
**Created:** [October 26, 2022, 9:05pm UTC](https://discuss.huggingface.co/t/hf-space-runtimeerror-cuda-error-no-kernel-image-is-available-for-execution-on-the-device/25039 "2022-10-26T21:05:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vict0rsch](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/vict0rsch/32/12254_2.png) [@vict0rsch](https://discuss.huggingface.co/u/vict0rsch)\
**Post date:** [October 26, 2022, 9:05pm UTC](https://discuss.huggingface.co/t/hf-space-runtimeerror-cuda-error-no-kernel-image-is-available-for-execution-on-the-device/25039/1 "2022-10-26T21:05:04Z")

</div>

My requirements, as per the docs, contain the following lines:

```auto
--extra-index-url https://download.pytorch.org/whl/cu113
torch

```

However, my [Space](https://huggingface.co/spaces/vict0rsch/climateGAN) cannot build with A10G GPUs because of a CUDA kernel error:

```auto
Traceback (most recent call last):
  File "app.py", line 88, in <module>
    cg = ClimateGAN(
  File "/home/user/app/climategan_wrapper.py", line 143, in __init__
    self.trainer.G.half()
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/torch/nn/modules/module.py", line 506, in half
    return self._apply(lambda t: t.half() if t.is_floating_point() else t)
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/torch/nn/modules/module.py", line 359, in _apply
    module._apply(fn)
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/torch/nn/modules/module.py", line 359, in _apply
    module._apply(fn)
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/torch/nn/modules/module.py", line 381, in _apply
    param_applied = fn(param)
  File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/torch/nn/modules/module.py", line 506, in <lambda>
    return self._apply(lambda t: t.half() if t.is_floating_point() else t)
RuntimeError: CUDA error: no kernel image is available for execution on the device

```
