aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-06-04 15:42:22 +0200
committerThomas Schwinge <thomas@codesourcery.com>2021-06-08 11:31:49 +0200
commit292fb10bebf3c209f560d1590d2d70bf30b58018 (patch)
treec225572d8f4e3d0f2c6912d394c9642d3094475e
parent97a040e987bfdc40d3bf442be74571a6819122cd (diff)
downloadgcc-292fb10bebf3c209f560d1590d2d70bf30b58018.zip
gcc-292fb10bebf3c209f560d1590d2d70bf30b58018.tar.gz
gcc-292fb10bebf3c209f560d1590d2d70bf30b58018.tar.bz2
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'.
-rw-r--r--libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c2
1 files changed, 1 insertions, 1 deletions
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 fff0c28..27da765 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++)