Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-56.c
blobe3f5a80518fedccdad9b07255cd6a84d4c98d1bd
1 /* { dg-do run } */
2 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
4 #include <stdlib.h>
5 #include <openacc.h>
7 int
8 main (int argc, char **argv)
10 const int N = 256;
11 unsigned char *h;
12 void *d;
14 h = (unsigned char *) malloc (N);
16 d = acc_malloc (N);
18 acc_map_data (h, d, N >> 1);
20 if (acc_is_present (h, 1) != 1)
21 abort ();
23 if (acc_is_present (h + (N >> 1), 1) != 0)
24 abort ();
26 acc_unmap_data (h);
28 acc_free (d);
30 free (h);
32 return 0;