1 // RUN: %gdb-compile 2>&1 | tee %t.compile
2 // RUN: env OMP_SCHEDULE=dynamic,2 %gdb-test -x %S/ompd_icvs.cmd %t 2>&1 | tee
3 // %t.out | FileCheck %s
8 omp_set_max_active_levels(3);
10 omp_set_num_threads(9);
13 omp_set_num_threads(5);
17 { printf("Inner: num_thds=%d\n", omp_get_num_threads()); }
20 omp_set_max_active_levels(0);
24 { printf("Inner: num_thds=%d\n", omp_get_num_threads()); }
28 { printf("Outer: num_thds=%d\n", omp_get_num_threads()); }
32 // CHECK: Loaded OMPD lib successfully!
34 // CHECK: run-sched-var task dynamic,2
35 // CHECK: levels-var parallel 2
36 // CHECK: active-levels-var parallel 2
37 // CHECK: team-size-var parallel 5
39 // CHECK: levels-var parallel 2
40 // CHECK: active-levels-var parallel 1
41 // CHECK: team-size-var parallel 1
43 // CHECK: levels-var parallel 1
44 // CHECK: active-levels-var parallel 1
45 // CHECK: team-size-var parallel 9
47 // CHECK-NOT: Python Exception
48 // CHECK-NOT: The program is not being run.
49 // CHECK-NOT: No such file or directory