aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.oacc-c++
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2015-07-08 14:59:59 +0000
committerThomas Schwinge <thomas@codesourcery.com>2015-07-08 14:59:59 +0000
commit4534dd9d542a035270bce98802bfbce8b931b87f (patch)
tree49238907f42004f77228eb1e7c9ae4aa57f88eed /libgomp/testsuite/libgomp.oacc-c++
parenteb58e3c8fbc330f1079f00f412000ad256fd957f (diff)
[nvptx offloading] Only 64-bit configurations are currently supported
PR libgomp/65099 gcc/ * config/nvptx/mkoffload.c (main): Create an offload image only in 64-bit configurations. libgomp/ * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not in a 64-bit configuration. * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia offloading testing if no such device is available. * testsuite/libgomp.oacc-c/c.exp: Likewise. * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@225560 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite/libgomp.oacc-c++')
-rw-r--r--libgomp/testsuite/libgomp.oacc-c++/c++.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-c++/c++.exp b/libgomp/testsuite/libgomp.oacc-c++/c++.exp
index 80d135919cf..3b97024492c 100644
--- a/libgomp/testsuite/libgomp.oacc-c++/c++.exp
+++ b/libgomp/testsuite/libgomp.oacc-c++/c++.exp
@@ -85,6 +85,12 @@ if { $lang_test_file_found } {
set acc_mem_shared 0
}
nvidia {
+ if { ![check_effective_target_openacc_nvidia_accel_present] } {
+ # Don't bother; execution testing is going to FAIL.
+ untested "$subdir $offload_target_openacc offloading"
+ continue
+ }
+
# Copy ptx file (TEMPORARY)
remote_download host $srcdir/libgomp.oacc-c-c++-common/subr.ptx