Description
"Hello, There!! I’m facing a CUDA compatibility issue with my new RTX 5080.
My environment can successfully recognize the GPU (e.g., torch.cuda.is_available() returns True), but any attempt to run a training operation fails with the following error:
Exception has occurred: RuntimeError
CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
File “C:\Users\Hyeyeoncho\Documents\My Codes\sac\SAC.py”, line 72, in forward x = F.relu(self.fc1(x)) ^^^^^^^^^^^^^^^^^^^ File “C:\Users\Hyeyeoncho\Documents\My Codes\sac\SAC.py”, line 82, in sample mean, log_std = self.forward(state) ^^^^^^^^^^^^^^^^^^^ File “C:\Users\Hyeyeoncho\Documents\My Codes\sac\SAC.py”, line 149, in select_action action, _ = self.actor.sample(state) ^^^^^^^^^^^^^^^^^^^^^^^^ File “C:\Users\Hyeyeoncho\Documents\My Codes\sac\SAC.py”, line 227, in main action = agent.select_action(state) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:\Users\Hyeyeoncho\Documents\My Codes\sac\SAC.py”, line 249, in main() RuntimeError: CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
It seems the pre-compiled kernels in my PyTorch build do not include support for my GPU’s architecture (sm_120). What is the recommended way to fix this? Any help would be appreciated."
Environment
GPU Type: NVIDIA GeForce RTX 5080
Nvidia Driver Version: 581.29
CUDA Version: 12.4
CUDNN Version: 90100
Operating System + Version: Windows 11 (Build 26100)
Python Version (if applicable): 3.11.13
PyTorch Version (if applicable): 2.6.0.dev20241112
TensorFlow Version (if applicable): N/A
TensorRT Version: Not Installed