]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nvptx: bump default to PTX 4.1
authorAndrew Stubbs <ams@codesourcery.com>
Tue, 21 Dec 2021 10:09:08 +0000 (10:09 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Wed, 22 Dec 2021 10:40:35 +0000 (10:40 +0000)
gcc/ChangeLog:

* config/nvptx/nvptx-opts.h (ptx_version): Change PTX_VERSION_3_1 to
PTX_VERSION_4_1.
* config/nvptx/nvptx.c (nvptx_file_start): Bump minimum PTX version
to 4.1.
* config/nvptx/nvptx.opt (ptx_version): Add 4.1. Change default.
doc/invoke.texi: -mptx default is now 4.1.

gcc/ChangeLog.omp
gcc/config/nvptx/nvptx-opts.h
gcc/config/nvptx/nvptx.c
gcc/config/nvptx/nvptx.opt
gcc/doc/invoke.texi

index 5c1a09d05c82701ec3c5a02c09906ea243b764c7..012cc52a9e06e9c3150780ec6aad7781d38041ee 100644 (file)
@@ -1,3 +1,12 @@
+2021-12-22  Andrew Stubbs  <ams@codesourcery.com>
+
+       * config/nvptx/nvptx-opts.h (ptx_version): Change PTX_VERSION_3_1 to
+       PTX_VERSION_4_1.
+       * config/nvptx/nvptx.c (nvptx_file_start): Bump minimum PTX version
+       to 4.1.
+       * config/nvptx/nvptx.opt (ptx_version): Add 4.1. Change default.
+       doc/invoke.texi: -mptx default is now 4.1.
+
 2021-11-02  Tobias Burnus  <tobias@codesourcery.com>
 
        Backport from master:
index bfa926ef0f78650883e1fbe9bf3685e67bf2e34e..75e75164e24dc81f050e3c65b284b57d76ae6675 100644 (file)
@@ -28,7 +28,7 @@ enum ptx_isa
 
 enum ptx_version
 {
-  PTX_VERSION_3_1,
+  PTX_VERSION_4_1,
   PTX_VERSION_6_3
 };
 
index 15f6fc8213286edd5323ee018994b3f82d27404a..5437b12c9253ce70d7a818a466c711d5a595c832 100644 (file)
@@ -4832,7 +4832,7 @@ nvptx_file_start (void)
   if (TARGET_PTX_6_3)
     fputs ("\t.version\t6.3\n", asm_out_file);
   else
-    fputs ("\t.version\t3.1\n", asm_out_file);
+    fputs ("\t.version\t4.1\n", asm_out_file);
   if (TARGET_SM35)
     fputs ("\t.target\tsm_35\n", asm_out_file);
   else
index 468c6cafd571238d5a07632ce842f0df0cbebc80..521b8ea0645bd8a89bd9f3fd200a937b5d2e477b 100644 (file)
@@ -70,12 +70,16 @@ Enum
 Name(ptx_version) Type(int)
 Known PTX versions (for use with the -mptx= option):
 
+; Keep 3.1 for backwards compatibility only
 EnumValue
-Enum(ptx_version) String(3.1) Value(PTX_VERSION_3_1)
+Enum(ptx_version) String(3.1) Value(PTX_VERSION_4_1)
+
+EnumValue
+Enum(ptx_version) String(4.1) Value(PTX_VERSION_4_1)
 
 EnumValue
 Enum(ptx_version) String(6.3) Value(PTX_VERSION_6_3)
 
 mptx=
-Target RejectNegative ToLower Joined Enum(ptx_version) Var(ptx_version_option) Init(PTX_VERSION_3_1)
+Target RejectNegative ToLower Joined Enum(ptx_version) Var(ptx_version_option) Init(PTX_VERSION_4_1)
 Specify the version of the ptx version to use.
index ef55ee595fc491ca218fef10ae79cdd9e9227648..5f32d3e23f21f472e48a062c87e9eaadc204e83e 100644 (file)
@@ -26423,8 +26423,8 @@ 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.
+Valid version strings include @samp{4.1} and @samp{6.3}.  The default PTX
+version is 4.1.
 
 @item -mmainkernel
 @opindex mmainkernel