mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
97a040e987
commit
292fb10beb
|
|
@ -79,7 +79,7 @@ void t2 ()
|
||||||
void t3 ()
|
void t3 ()
|
||||||
{
|
{
|
||||||
int a, b[N], c, d, i;
|
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;
|
a = 5;
|
||||||
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue