Skip to content

CUDA error: no kernel image is available for execution on the device (NVIDIA RTX 5090 + CUDA 11.6.2 + torch==1.12.1+cu116) #380

Description

@20254018

Description
When trying to run the RFdiffusion inference script with a NVIDIA GeForce RTX 5090 GPU (sm_120), I encounter the following CUDA error:

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.

At the beginning of the log, I also see this warning:
UserWarning:
NVIDIA GeForce RTX 5090 with CUDA capability sm_120 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70 sm_75 sm_80 sm_86.
If you want to use the NVIDIA GeForce RTX 5090 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

How to Reproduce
I use the following command:

/home/hj/myenv/bin/python /mnt/d/pycharm/RFdiffusion/RFdiffusion-main/RFdiffusion-main/scripts/run_inference.py
inference.output_prefix=example_outputs/design_ppi
inference.input_pdb=input_pdbs/insulin_target.pdb
contigmap.contigs=[A1-150/0 70-100]
ppi.hotspot_res=[A59,A83,A91]
inference.num_designs=10
denoiser.noise_scale_ca=0
denoiser.noise_scale_frame=0

Environment
GPU: NVIDIA GeForce RTX 5090 (CUDA capability sm_120)

CUDA: 11.6.2

Python: 3.9

Operating System: Ubuntu 20.04

Container image: nvcr.io/nvidia/cuda:11.6.2-cudnn8-runtime-ubuntu20.04

PyTorch: 1.12.1+cu116

DGL: 1.0.2+cu116

Other key dependencies:

e3nn==0.3.3
wandb==0.12.0
pynvml==11.0.0
git+https://github.com/NVIDIA/dllogger#egg=dllogger
decorator==5.1.0
hydra-core==1.3.2
pyrsistent==0.19.3
pytest

RFdiffusion: latest main branch

What I've Tried
Confirmed CUDA driver and GPU work properly

Using PyTorch 1.12.1+cu116 (which only supports up to sm_86 officially)

Checked the PyTorch official docs, but found no support for RTX 5090 (sm_120) yet

Tried setting CUDA_LAUNCH_BLOCKING=1 for a more precise stacktrace, but the core issue persists

What help do I need?
How can I get PyTorch to support RTX 5090 (sm_120) and run RFdiffusion in this environment?

Do I have to wait for an official PyTorch release with sm_120 support, or is there a temporary workaround (like building from source)? If so, can you provide detailed suggestions?

If changing CUDA or PyTorch versions could help, which ones do you recommend and how should I install them?

Any other suggestions or possible workarounds are appreciated!

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions