]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[GCN] Streamline 'libgomp/testsuite/lib/libgomp.exp:check_effective_target_openacc_ra...
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 4 Jun 2021 13:19:35 +0000 (15:19 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 8 Jun 2021 09:16:21 +0000 (11:16 +0200)
The GCN support that got added in r278935 (commit
83caa34e2a618842e05f59cbb3e2dda93dc23270) "Enable OpenACC GCN testing" was
forked before my r269107 (commit ee332b4a9a19552d160a23155f59b11692d8f07e)
"[libgomp] Clarify difference between offload target, offload plugin, and
OpenACC device type", and didn't later pick up these changes.

No functional change.

libgomp/
* testsuite/lib/libgomp.exp
(check_effective_target_openacc_radeon_accel_selected):
Streamline.

libgomp/testsuite/lib/libgomp.exp

index 0f4eb6fd4ff2df504a3ea510c2fbe77f4c6b8c0d..45c78d8510e90fc76f8db4313c3cb1a7bf0f92f4 100644 (file)
@@ -472,11 +472,8 @@ proc check_effective_target_openacc_radeon_accel_selected { } {
     if { ![check_effective_target_openacc_radeon_accel_present] } {
        return 0;
     }
-    global offload_target
-    if { [string match "amdgcn*" $offload_target] } {
-        return 1;
-    }
-    return 0;
+    global openacc_device_type
+    return [string match "radeon" $openacc_device_type]
 }
 
 # Return 1 if cuda.h and -lcuda are available.