blob: ea7a71904f09f30f29d9d9b86c4b5a370011f558 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <stdlib.h>
#include <omp.h>
int
main (void)
{
omp_sched_t kind;
int modifier;
omp_set_schedule (omp_sched_static, 32);
omp_get_schedule (&kind, &modifier);
if (kind != omp_sched_static || modifier != 32)
abort ();
omp_set_schedule (omp_sched_guided, 4);
omp_get_schedule (&kind, &modifier);
if (kind != omp_sched_guided || modifier != 4)
abort ();
if (omp_get_thread_limit () < 0)
abort ();
omp_set_max_active_levels (6);
if (omp_get_max_active_levels () != 6)
abort ();
if (omp_get_max_active_levels () > omp_get_supported_active_levels ())
abort ();
return 0;
}
|