https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97348
--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> --- (In reply to Tom de Vries from comment #1) > Looking in the nvptx-as sources, we find a hard_coded default: > ... > const char *smver = "sm_30"; > ... > and after changing that to sm_35, the conftest passes. > > I'm not sure if nvptx-as should have a hardcoded default, probably it should > parse the .target line and pass that to ptxas. Filed https://github.com/MentorEmbedded/nvptx-tools/issues/24.