Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / kernels-loop-and-seq-2.c
blobd36592f7233c51abd5fddc34d99ac1d2e63436e5
1 #include <stdlib.h>
3 #define N 32
5 unsigned int
6 foo (int n, unsigned int *a)
8 #pragma acc kernels copy (a[0:N])
10 a[0] = a[0] + 1;
12 for (int i = 0; i < n; i++)
13 a[i] = 1;
16 return a[0];
19 int
20 main (void)
22 unsigned int a[N];
23 unsigned res, i;
25 for (i = 0; i < N; ++i)
26 a[i] = i % 4;
28 res = foo (N, a);
29 if (res != 1)
30 abort ();
32 return 0;