aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.oacc-c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2020-04-21 14:16:24 +0200
committerThomas Schwinge <thomas@codesourcery.com>2020-04-29 09:24:07 +0200
commit4912a04f8b35fadf65973bffc7037432ff7b7980 (patch)
tree15b9899192585644f7db2afe89cbb1d120473292 /libgomp/testsuite/libgomp.oacc-c
parentb9dc11b6730a8030cfc85f0222cef523c9c5d27c (diff)
downloadgcc-4912a04f8b35fadf65973bffc7037432ff7b7980.zip
gcc-4912a04f8b35fadf65973bffc7037432ff7b7980.tar.gz
gcc-4912a04f8b35fadf65973bffc7037432ff7b7980.tar.bz2
[gcn] Use 'radeon' for the environment variable 'ACC_DEVICE_TYPE'
..., per OpenACC 3.0, A.1.2. "AMD GPU Targets". This complements commit 6687d13a87c42dddc7d1c7adade38d31ba0d1401 "Rename acc_device_gcn to acc_device_radeon". libgomp/ * oacc-init.c (get_openacc_name): Handle 'gcn'. * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type) [amdgcn*]: Return 'radeon'. Adjust all users. (check_effective_target_openacc_amdgcn_accel_present): Rename to... (check_effective_target_openacc_radeon_accel_present): ... this. Adjust all users. (check_effective_target_openacc_amdgcn_accel_selected): Rename to... (check_effective_target_openacc_radeon_accel_selected): ... this. Adjust all users.
Diffstat (limited to 'libgomp/testsuite/libgomp.oacc-c')
-rw-r--r--libgomp/testsuite/libgomp.oacc-c/c.exp18
1 files changed, 9 insertions, 9 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-c/c.exp b/libgomp/testsuite/libgomp.oacc-c/c.exp
index 7f13242..48cbc98 100644
--- a/libgomp/testsuite/libgomp.oacc-c/c.exp
+++ b/libgomp/testsuite/libgomp.oacc-c/c.exp
@@ -51,15 +51,6 @@ foreach offload_target [concat [split $offload_targets ","] "disable"] {
unsupported "$subdir $offload_target offloading"
continue
}
- gcn {
- if { ![check_effective_target_openacc_amdgcn_accel_present] } {
- # Don't bother; execution testing is going to FAIL.
- untested "$subdir $offload_target offloading: supported, but hardware not accessible"
- continue
- }
-
- set acc_mem_shared 0
- }
host {
set acc_mem_shared 1
}
@@ -78,6 +69,15 @@ foreach offload_target [concat [split $offload_targets ","] "disable"] {
set acc_mem_shared 0
}
+ radeon {
+ if { ![check_effective_target_openacc_radeon_accel_present] } {
+ # Don't bother; execution testing is going to FAIL.
+ untested "$subdir $offload_target offloading: supported, but hardware not accessible"
+ continue
+ }
+
+ set acc_mem_shared 0
+ }
default {
error "Unknown OpenACC device type: $openacc_device_type (offload target: $offload_target)"
}