From: Thomas Schwinge Date: Fri, 19 Jun 2015 07:41:44 +0000 (+0200) Subject: libgomp: libgomp.oacc-c-c++-common/lib-62.c is for acc_device_nvidia only X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bfcd036fbe7c327c8839957343edab5453faf0c8;p=gcc.git 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. From-SVN: r224640 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index d49b0564a3f..cf1a0b0d5a4 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,5 +1,8 @@ 2015-06-19 Thomas Schwinge + * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for + acc_device_nvidia. + PR libgomp/66518 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL. * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise. 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 #include @@ -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; }