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'.
This commit is contained in:
Thomas Schwinge 2021-06-04 15:42:22 +02:00
parent 97a040e987
commit 292fb10beb

View 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++)