1 /* { dg-additional-options "-foffload-options=nvptx-none=-misa=sm_35" { target { offload_target_nvptx } } } */
2 /* { dg-additional-sources requires-5-aux.c } */
4 /* Depending on offload device capabilities, it may print something like the
5 following (only) if GOMP_DEBUG=1:
6 "devices present but 'omp requires unified_address, unified_shared_memory, reverse_offload' cannot be fulfilled"
7 and in that case does host-fallback execution.
9 As no offload devices support USM at present, we may verify host-fallback
10 execution by absence of separate memory spaces. */
12 #pragma omp requires unified_shared_memory, unified_address, reverse_offload
15 extern void foo (void);
20 #pragma omp target map(to: a)
21 for (int i
= 0; i
< 10; i
++)
24 for (int i
= 0; i
< 10; i
++)