diff options
author | Tom de Vries <tdevries@suse.de> | 2022-02-08 15:35:37 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-02-08 15:35:37 +0100 |
commit | ab1355a4804f04700a6ad49c9cc90261334e9dc3 (patch) | |
tree | 651684cac7496116761d121ac873b73020074107 /gcc | |
parent | 1e3185e714e877b2b4d14ade0865322f71a8cbf6 (diff) | |
download | gcc-ab1355a4804f04700a6ad49c9cc90261334e9dc3.zip gcc-ab1355a4804f04700a6ad49c9cc90261334e9dc3.tar.gz gcc-ab1355a4804f04700a6ad49c9cc90261334e9dc3.tar.bz2 |
[nvptx] Unbreak build, add PTX_ISA_SM70
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/nvptx/nvptx-opts.h | 1 | ||||
-rw-r--r-- | gcc/config/nvptx/nvptx.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/nvptx/nvptx-opts.h b/gcc/config/nvptx/nvptx-opts.h index cc488b2..e918d43 100644 --- a/gcc/config/nvptx/nvptx-opts.h +++ b/gcc/config/nvptx/nvptx-opts.h @@ -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 }; diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index 065d7aa..edffd08 100644 --- a/gcc/config/nvptx/nvptx.h +++ b/gcc/config/nvptx/nvptx.h @@ -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) |