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-87.c
blobcdc87edc5908a28e3b6270000924de5d882fce90
1 /* { dg-do run } */
3 #include <stdlib.h>
4 #include <unistd.h>
5 #include <openacc.h>
7 int
8 main (int argc, char **argv)
10 if (acc_get_current_cuda_context () != 0)
11 abort ();
13 acc_init (acc_device_host);
15 if (acc_get_current_cuda_context () != 0)
16 abort ();
18 acc_shutdown (acc_device_host);
20 if (acc_get_current_cuda_context () != 0)
21 abort ();
23 if (acc_get_num_devices (acc_device_nvidia))
25 acc_init (acc_device_nvidia);
27 if (acc_get_current_cuda_context () == 0)
28 abort ();
30 acc_shutdown (acc_device_nvidia);
33 if (acc_get_num_devices (acc_device_radeon))
35 acc_init (acc_device_radeon);
37 if (acc_get_current_cuda_context () != 0)
38 abort ();
40 acc_shutdown (acc_device_radeon);
43 if (acc_get_current_cuda_context () != 0)
44 abort ();
46 return 0;
49 /* { dg-output "" } */