diff mbox

libgomp: libgomp.oacc-c-c++-common/lib-62.c is for acc_device_nvidia only

Message ID 5593BC9D.2030802@mentor.com
State New
Headers show

Commit Message

Tom de Vries July 1, 2015, 10:10 a.m. UTC
On 19/06/15 09:50, Thomas Schwinge wrote:
> Hi!
>
> On Tue, 5 May 2015 16:09:18 +0200, I wrote:
>> I don't know why libgomp.oacc-c-c++-common/lib-62.c contains this
>> explicit acc_init call with acc_device_nvidia -- generally, the test
>> cases should not contain such unconditional statements.  So, let's then
>> please remove this.  See
>> libgomp/testsuite/libgomp.oacc-c-c++-common/lib-66.c for a very similar
>> test case, which does this differently.
>
> Committed in r224640:
>
> commit 3625ad60ab1ad783f4afead68f44b19011e4780d
> Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
> Date:   Fri Jun 19 07:41:44 2015 +0000
>
>      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

Hi Thomas,

I've committed attached patch to gomp-4_0-branch, before finding this 
patch (which is a bit more thorough). You can drop it with the next 
merge from trunk.

Thanks,
- Tom
diff mbox

Patch

Run libgomp.oacc-c-c++-common/lib-62.c only for nvidia

2015-07-01  Tom de Vries  <tom@codesourcery.com>

	* testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only run for nvidia.
---
 libgomp/testsuite/libgomp.oacc-c-c++-common/lib-62.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 47dc953..6e6f8c5 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>
-- 
1.9.1