Ptxas fatal : Value 'sm_30' is not defined for option 'gpu-name'

Hi, I am using a systems with Centos 8, with a GTX950, installed gcc-offload-nvptx.
I try to offload OpenMP code to GPU, using a very simple example with #omp target.
Unfortunately in compile I get the error messages:

ptxas fatal : Value ‘sm_30’ is not defined for option ‘gpu-name’
nvptx-as: ptxas returned 255 exit status
mkoffload: fatal error: x86_64-redhat-linux-accel-nvptx-none-gcc returned 1 exit status
compilation terminated.

How to deal with this ptxas fatal error?


1 Like

I believe this is due to NVIDIA dropping support for SM_30 in latest CUDA and gcc-offload-nvptx to force use it. I’m still banging my head on this myself. Trying older CUDA if that works for you may be the easiest route out. See also