]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[nvptx] Unbreak build, add PTX_ISA_SM70
authorTom de Vries <tdevries@suse.de>
Tue, 8 Feb 2022 14:35:37 +0000 (15:35 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 8 Feb 2022 14:35:37 +0000 (15:35 +0100)
With the commit "[nvptx] Choose -mptx default based on -misa" I introduced a
use of PTX_ISA_SM70, without adding it first.

Add it, as well as the corresponding TARGET_SM70.

Build for x86_64 with nvptx accelerator.

gcc/ChangeLog:

2022-02-08  Tom de Vries  <tdevries@suse.de>

* config/nvptx/nvptx-opts.h (enum ptx_isa): Add PTX_ISA_SM70.
* config/nvptx/nvptx.h (TARGET_SM70): Define.

gcc/config/nvptx/nvptx-opts.h
gcc/config/nvptx/nvptx.h

index cc488b237205a79d302c733870fc63a89cce7860..e918d43ea166feabc9e25291f333a9eb0228e90a 100644 (file)
@@ -25,6 +25,7 @@ enum ptx_isa
   PTX_ISA_SM30,
   PTX_ISA_SM35,
   PTX_ISA_SM53,
+  PTX_ISA_SM70,
   PTX_ISA_SM75,
   PTX_ISA_SM80
 };
index 065d7aa210c852640640f62084d626785989d59b..edffd088b15a78e8753b40bb1c1e756f5a455c16 100644 (file)
@@ -88,6 +88,7 @@
 
 #define TARGET_SM35 (ptx_isa_option >= PTX_ISA_SM35)
 #define TARGET_SM53 (ptx_isa_option >= PTX_ISA_SM53)
+#define TARGET_SM70 (ptx_isa_option >= PTX_ISA_SM70)
 #define TARGET_SM75 (ptx_isa_option >= PTX_ISA_SM75)
 #define TARGET_SM80 (ptx_isa_option >= PTX_ISA_SM80)