]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Enhance 'libgomp.oacc-c-c++-common/firstprivate-1.c' for non-'acc_device_nvidia'
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 4 Jun 2021 13:42:22 +0000 (15:42 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 8 Jun 2021 09:31:49 +0000 (11:31 +0200)
libgomp/
* testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
for non-'acc_device_nvidia'.

libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c

index fff0c28e8ad7f57db4b7133cc1326665320af7cd..27da7654de9650a93753a3ee883decdd54ed3d63 100644 (file)
@@ -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++)