[GCN] Streamline 'libgomp/testsuite/lib/libgomp.exp:check_effective_target_openacc_radeon_accel_selected'
The GCN support that got added in r278935 (commit83caa34e2a
) "Enable OpenACC GCN testing" was forked before my r269107 (commitee332b4a9a
) "[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.
This commit is contained in:
parent
0886426f5f
commit
f9da798ba6
1 changed files with 2 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue