]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nvptx: Add -mptx=6.0
authorTobias Burnus <tobias@codesourcery.com>
Sat, 19 Feb 2022 22:28:49 +0000 (23:28 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 22 Feb 2022 13:57:28 +0000 (14:57 +0100)
Currently supported internally are 3.1, 6.0, 6.3 and 7.0.

However, -mptx= supports 3.1, 6.3, 7.0 – but not the internal default 6.0.

Add -mptx=6.0 for consistency.

Tested on nvptx.

gcc/ChangeLog:

* config/nvptx/nvptx.opt (mptx): Add 6.0 alias PTX_VERSION_6_0.
* doc/invoke.texi (-mptx): Update for new values and defaults.

Co-Authored-By: Tom de Vries <tdevries@suse.de>
gcc/config/nvptx/nvptx.opt
gcc/doc/invoke.texi

index e56ec9288da631b36ab100b3c0f4d6a5bd8cb640..97e127cc4fb7b81f827564f7353eb83fc039932c 100644 (file)
@@ -82,6 +82,9 @@ Known PTX versions (for use with the -mptx= option):
 EnumValue
 Enum(ptx_version) String(3.1) Value(PTX_VERSION_3_1)
 
+EnumValue
+Enum(ptx_version) String(6.0) Value(PTX_VERSION_6_0)
+
 EnumValue
 Enum(ptx_version) String(6.3) Value(PTX_VERSION_6_3)
 
index 635c5f79278d8a8e652570a59e7779d70058e626..56f3a01de443e89d99ab6744cb4d4b5db12d2f97 100644 (file)
@@ -27286,9 +27286,10 @@ strings must be lower-case.  Valid ISA strings include @samp{sm_30} and
 
 @item -mptx=@var{version-string}
 @opindex mptx
-Generate code for given the specified PTX version (e.g.@: @samp{6.3}).
-Valid version strings include @samp{3.1} and @samp{6.3}.  The default PTX
-version is 3.1.
+Generate code for given the specified PTX version (e.g.@: @samp{7.0}).
+Valid version strings include @samp{3.1}, @samp{6.0}, @samp{6.3}, and
+@samp{7.0}.  The default PTX version is 6.0, unless a higher minimal
+version is required for specified PTX ISA via option @option{-misa=}.
 
 @item -mmainkernel
 @opindex mmainkernel