diff options
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/lib-62.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-62.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-62.c index 47dc953c69c..2988b5bcd0a 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-62.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-62.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target openacc_nvidia_accel_selected } } */ #include <string.h> #include <stdlib.h> @@ -12,8 +12,6 @@ main (int argc, char **argv) unsigned char *h; void *d; - acc_init (acc_device_nvidia); - h = (unsigned char *) malloc (N); for (i = 0; i < N; i++) @@ -41,8 +39,6 @@ main (int argc, char **argv) free (h); - acc_shutdown (acc_device_nvidia); - return 0; } |