+2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
+
+ * 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.
+
2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
PR c/87924
hsa {
continue
}
+ default {
+ error "Unknown offload target: $offload_target_openacc"
+ }
}
lappend offload_targets_s_openacc "$offload_target_openacc"
}
return [is-effective-target lp64]
}
-# Return 1 if at least one nvidia board is present.
+# Return 1 if at least one Nvidia GPU is accessible.
proc check_effective_target_openacc_nvidia_accel_present { } {
return [check_runtime openacc_nvidia_accel_present {
} "" ]
}
-# Return 1 if at least one nvidia board is present, and the nvidia device type
+# Return 1 if at least one Nvidia GPU is accessible, and the nvidia device type
# is selected by default by means of setting the environment variable
# ACC_DEVICE_TYPE.
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
}
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"
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
}
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"
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
}
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"