diff options
author | Tom de Vries <tdevries@suse.de> | 2022-02-23 15:58:59 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-02-24 09:19:01 +0100 |
commit | a046033ea0ba97314265933bc48124574db2d62a (patch) | |
tree | 5eea8b54941ff62e333d1f88fb20e69981842d15 /gcc/config/nvptx/t-omp-device | |
parent | c982d02ffe26fcd07280bf0f35f90df9be00716e (diff) | |
download | gcc-a046033ea0ba97314265933bc48124574db2d62a.zip gcc-a046033ea0ba97314265933bc48124574db2d62a.tar.gz gcc-a046033ea0ba97314265933bc48124574db2d62a.tar.bz2 |
[nvptx] Add missing t-omp-device isas
In t-omp-device we list isas that can be used in omp declare variant like so:
...
#pragma omp declare variant (f30) match (device={isa("sm_30")})
...
and in nvptx_omp_device_kind_arch_isa we handle them.
Update both to reflect the current list of isas.
Tested on x86_64-linux with nvptx accelerator.
gcc/ChangeLog:
2022-02-23 Tom de Vries <tdevries@suse.de>
* config/nvptx/nvptx.cc (nvptx_omp_device_kind_arch_isa): Handle
sm_70, sm_75 and sm_80.
* config/nvptx/t-omp-device: Add sm_53, sm_70, sm_75 and sm_80.
Co-Authored-By: Tobias Burnus <tobias@codesourcery.com>
Diffstat (limited to 'gcc/config/nvptx/t-omp-device')
-rw-r--r-- | gcc/config/nvptx/t-omp-device | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/nvptx/t-omp-device b/gcc/config/nvptx/t-omp-device index 8765d9f..4228218 100644 --- a/gcc/config/nvptx/t-omp-device +++ b/gcc/config/nvptx/t-omp-device @@ -1,4 +1,4 @@ omp-device-properties-nvptx: $(srcdir)/config/nvptx/nvptx.cc echo kind: gpu > $@ echo arch: nvptx >> $@ - echo isa: sm_30 sm_35 >> $@ + echo isa: sm_30 sm_35 sm_53 sm_70 sm_75 sm_80 >> $@ |