public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1288] Enhance 'libgomp.oacc-c-c++-common/firstprivate-1.c' for non-'acc_device_nvidia'
@ 2021-06-08  9:32 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2021-06-08  9:32 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:292fb10bebf3c209f560d1590d2d70bf30b58018

commit r12-1288-g292fb10bebf3c209f560d1590d2d70bf30b58018
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Fri Jun 4 15:42:22 2021 +0200

    Enhance 'libgomp.oacc-c-c++-common/firstprivate-1.c' for non-'acc_device_nvidia'
    
            libgomp/
            * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
            for non-'acc_device_nvidia'.

Diff:
---
 libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c
index fff0c28e8ad..27da7654de9 100644
--- a/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c
+++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c
@@ -79,7 +79,7 @@ void t2 ()
 void t3 ()
 {
   int a, b[N], c, d, i;
-  int n = acc_get_device_type () == acc_device_nvidia ? N : 1;
+  int n = acc_get_device_type () != acc_device_host ? N : 1;
 
   a = 5;
   for (i = 0; i < n; i++)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-08  9:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08  9:32 [gcc r12-1288] Enhance 'libgomp.oacc-c-c++-common/firstprivate-1.c' for non-'acc_device_nvidia' Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).