gcn/t-omp-device: Add 'amdgcn' as 'arch' [PR105602]
Improve cross-compiler handling. gcc/ChangeLog: PR target/105602 * config/gcn/t-omp-device (arch): Add 'amdgcn' besides existing 'gcn'. * config/gcn/gcn.cc (gcn_omp_device_kind_arch_isa): Likewise.
This commit is contained in:
parent
2c16eb3157
commit
ebe5dace8c
@ -2632,7 +2632,7 @@ gcn_omp_device_kind_arch_isa (enum omp_device_kind_arch_isa trait,
|
||||
case omp_device_kind:
|
||||
return strcmp (name, "gpu") == 0;
|
||||
case omp_device_arch:
|
||||
return strcmp (name, "gcn") == 0;
|
||||
return strcmp (name, "amdgcn") == 0 || strcmp (name, "gcn") == 0;
|
||||
case omp_device_isa:
|
||||
if (strcmp (name, "fiji") == 0)
|
||||
return gcn_arch == PROCESSOR_FIJI;
|
||||
|
@ -1,4 +1,4 @@
|
||||
omp-device-properties-gcn: $(srcdir)/config/gcn/gcn.cc
|
||||
echo kind: gpu > $@
|
||||
echo arch: gcn >> $@
|
||||
echo arch: amdgcn gcn >> $@
|
||||
echo isa: fiji gfx900 gfx906 gfx908 >> $@
|
||||
|
Loading…
Reference in New Issue
Block a user