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