Debian Codegraph @

libgomp/testsuite/libgomp.c/reverse-offload-sm30.c

raw
1 /* { dg-do link { target { offload_target_nvptx } } } */
2 /* { dg-additional-options "-foffload-options=nvptx-none=-march=sm_30 -foffload-options=nvptx-none=-mptx=_" } */
3
4 #pragma omp requires reverse_offload
5
6 int
7 main ()
8 {
9 #pragma omp target
10 {
11 }
12 return 0;
13 }
14
15 /* The 'mkoffload's currently don't obey '-fno-diagnostics-color' etc., so use a different way to effect the same thing:
16 { dg-set-compiler-env-var GCC_COLORS "" }
17 ..., so that the following regexp doesn't have to deal with color code escape sequences. */
18 /* { dg-warning "'omp requires reverse_offload' requires at least 'sm_35' for '-foffload-options=nvptx-none=-march=' - disabling offload-code generation for this device type" "" { target *-*-* } 0 } */