RL icon indicating copy to clipboard operation
RL copied to clipboard

[TRAIN-7] RuntimeError: No CUDA GPUs are available on A100; fix requires TORCH_CUDA_ARCH_LIST

Open anwithk opened this issue 6 months ago • 2 comments

Problem

Running examples/run_grpo.py on an A100 node produces RuntimeError: No CUDA GPUs are available, even though GPUs are accessible and CUDA is in PATH. The fix is to export TORCH_CUDA_ARCH_LIST="8.0", but this is not documented anywhere.

Steps to reproduce

Run examples/run_grpo.py on an A100 node without setting TORCH_CUDA_ARCH_LIST. Observe the error.

Suggested fix

Document that TORCH_CUDA_ARCH_LIST must be set to match the target GPU architecture. Consider detecting the GPU architecture automatically or setting a sensible default.

anwithk avatar Jun 05 '26 19:06 anwithk

Image

anwithk avatar Jun 10 '26 22:06 anwithk

Hi, I'd like to pick this up. I'm reproducing the missing-TORCH_CUDA_ARCH_LIST failure on the run_grpo.py path and will open a PR documenting the required setting (and a small startup warning if it proves safe).

four1er avatar Nov 23 '26 06:11 four1er