summaryrefslogtreecommitdiff
path: root/libgomp/testsuite
diff options
context:
space:
mode:
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-19 07:41:44 +0000
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-19 07:41:44 +0000
commit3625ad60ab1ad783f4afead68f44b19011e4780d (patch)
tree94a0e50647f81ff25953ca9106f26a25222da696 /libgomp/testsuite
parentc130d11c707853c1065f765698bb6dd93706bb83 (diff)
downloadgcc-3625ad60ab1ad783f4afead68f44b19011e4780d.tar.gz
libgomp: libgomp.oacc-c-c++-common/lib-62.c is for acc_device_nvidia only
libgomp/ * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for acc_device_nvidia. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224640 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r--libgomp/testsuite/libgomp.oacc-c-c++-common/lib-62.c6
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;
}