#1065596 gcc-12-offload-nvptx: offloading fails due to unsupported sm_35 default arch

Package:
gcc-12-offload-nvptx
Source:
gcc-12-offload-nvptx
Description:
GCC offloading compiler to NVPTX
Submitter:
Giacomo Mulas
Date:
2024-03-07 08:09:03 UTC
Severity:
normal
#1065596#5
Date:
2024-03-07 08:08:11 UTC
From:
To:
Dear Maintainer,

current versions of ptxas dropped support for sm_35, yet gcc-12-offload-nvptx uses that as the default, if unspecified. I can still compile openmp code offloaded to nvptx, but I have to explicitly add something like -foffload-options=nvptx-none="-march=sm_53" to override the default target arch. Please fix this, or make the default configurable so that one does not have to always specify it on the command line.
I am not sure this should be fixed in gcc-12-offload-nvptx or in nvptx-tools, feel free to reassign the bug, if appropriate.

Thanks in advance, best regards
Giacomo Mulas