aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.oacc-c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2019-02-22 11:50:49 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2019-02-22 11:50:49 +0100
commit1241136c71bc1bf67b1df59f965ad5d50a613b4e (patch)
treef3e5c383f4e173702f09e518e4acdb4918a15d9a /libgomp/testsuite/libgomp.oacc-c
parent68034b1bc2058fd3c78b0f583e718e8443346580 (diff)
downloadgcc-1241136c71bc1bf67b1df59f965ad5d50a613b4e.zip
gcc-1241136c71bc1bf67b1df59f965ad5d50a613b4e.tar.gz
gcc-1241136c71bc1bf67b1df59f965ad5d50a613b4e.tar.bz2
[libgomp] In OpenACC offloading testing, be more explicit in what is supported, and what is not, or why not
libgomp/ * testsuite/lib/libgomp.exp: Error out for unknown offload target. * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if "offloading: supported, but hardware not accessible". * testsuite/libgomp.oacc-c/c.exp: Likewise. * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise. From-SVN: r269106
Diffstat (limited to 'libgomp/testsuite/libgomp.oacc-c')
-rw-r--r--libgomp/testsuite/libgomp.oacc-c/c.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-c/c.exp b/libgomp/testsuite/libgomp.oacc-c/c.exp
index 4475bf5..77e852e 100644
--- a/libgomp/testsuite/libgomp.oacc-c/c.exp
+++ b/libgomp/testsuite/libgomp.oacc-c/c.exp
@@ -51,7 +51,7 @@ foreach offload_target_openacc $offload_targets_s_openacc {
nvidia {
if { ![check_effective_target_openacc_nvidia_accel_present] } {
# Don't bother; execution testing is going to FAIL.
- untested "$subdir $offload_target_openacc offloading"
+ untested "$subdir $offload_target_openacc offloading: supported, but hardware not accessible"
continue
}
@@ -64,7 +64,7 @@ foreach offload_target_openacc $offload_targets_s_openacc {
set acc_mem_shared 0
}
default {
- set acc_mem_shared 0
+ error "Unknown OpenACC device type: $offload_target_openacc"
}
}
set tagopt "$tagopt -DACC_MEM_SHARED=$acc_mem_shared"