Hi! On 2019-11-14T16:36:38+0000, Andrew Stubbs <a...@codesourcery.com> wrote: > This patch adds some necessary bits to enable OpenACC testings for > amdgcn offloading.
> --- a/libgomp/testsuite/lib/libgomp.exp > +++ b/libgomp/testsuite/lib/libgomp.exp > +# Return 1 if at least one AMD GCN board is present, and the AMD GCN device > +# type is selected by default. > + > +proc check_effective_target_openacc_amdgcn_accel_selected { } { > + if { ![check_effective_target_openacc_amdgcn_accel_present] } { > + return 0; > + } > + global offload_target > + if { [string match "amdgcn*" $offload_target] } { > + return 1; > + } > + return 0; > +} Pushed "[GCN] Streamline 'libgomp/testsuite/lib/libgomp.exp:check_effective_target_openacc_radeon_accel_selected'" to master branch in commit f9da798ba6348feaada80de04bc72cdf0c4a1f70, see attached. Grüße Thomas ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf
>From f9da798ba6348feaada80de04bc72cdf0c4a1f70 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge <tho...@codesourcery.com> Date: Fri, 4 Jun 2021 15:19:35 +0200 Subject: [PATCH] [GCN] Streamline 'libgomp/testsuite/lib/libgomp.exp:check_effective_target_openacc_radeon_accel_selected' 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 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libgomp/testsuite/lib/libgomp.exp b/libgomp/testsuite/lib/libgomp.exp index 0f4eb6fd4ff..45c78d8510e 100644 --- a/libgomp/testsuite/lib/libgomp.exp +++ b/libgomp/testsuite/lib/libgomp.exp @@ -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. -- 2.30.2