gcc-12: Nvptx updates.
Co-Authored-By: Tobias Burnus
-march
flag has been added. The -misa
+ flag is now considered an alias of the -march
flag.sm_53
,
+ sm_70
, sm_75
and sm_80
has been
+ added. These can be specified using the -march
flag.sm_30
, to fix support for sm_30
boards.-march-map
flag has been added. The
+ -march-map
value will be mapped to an valid
+ -march
flag value. For instance,
+ -march-map=sm_50
maps to -march=sm_35
.
+ This can be used to specify that generated code is to be executed on a
+ board with at least some specific compute capability, without having to
+ know the valid values for the -march
flag.-mptx
flag has been added to specify the PTX ISA version
for the generated code; permitted values are 3.1
- (default, matches previous GCC versions) and 6.3
.
+ (matches previous GCC versions), 6.0
, 6.3
,
+ and 7.0
. If not specified, the used version is the minimal
+ version required for -march
but at least 6.0
.
mptx-3.1
multilib was added. This allows using older
+ drivers which do not support PTX ISA version 6.0.__PTX_SM__
predefined macro allows code to check the
- compute model being targeted by the compiler.__PTX_ISA_VERSION_MAJOR__
+ and __PTX_ISA_VERSION_MINOR__
predefined macros allows code
+ to check the PTX ISA version being targeted by the compiler.