aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/lib/libgomp.exp
diff options
context:
space:
mode:
Diffstat (limited to 'libgomp/testsuite/lib/libgomp.exp')
-rw-r--r--libgomp/testsuite/lib/libgomp.exp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgomp/testsuite/lib/libgomp.exp b/libgomp/testsuite/lib/libgomp.exp
index 1040c29e0eb..6dc1e8ef3ca 100644
--- a/libgomp/testsuite/lib/libgomp.exp
+++ b/libgomp/testsuite/lib/libgomp.exp
@@ -321,6 +321,19 @@ proc check_effective_target_offload_device { } {
} ]
}
+# Return 1 if offload device is available and it has non-shared address space.
+proc check_effective_target_offload_device_nonshared_as { } {
+ return [check_runtime_nocache offload_device_nonshared_as {
+ int main ()
+ {
+ int a = 8;
+ #pragma omp target map(to: a)
+ a++;
+ return a != 8;
+ }
+ } ]
+}
+
# Return 1 if at least one nvidia board is present.
proc check_effective_target_openacc_nvidia_accel_present { } {