Debian Codegraph @

libgomp/testsuite/libgomp.c/interop-cuda-libonly.c

raw
1 /* { dg-do run { target { offload_device_nvptx } } } */
2 /* { dg-do link { target { ! offload_device_nvptx } } } */
3
4 /* { dg-require-effective-target openacc_libcudart } */
5 /* { dg-require-effective-target openacc_libcuda } */
6 /* { dg-additional-options "-lcuda -lcudart" } */
7
8 /* Same as interop-cuda-full.c, but also works if the header is not available. */
9
10 #define USE_CUDA_FALLBACK_HEADER 1
11 #include "interop-cuda-full.c"