1 // RUN: %gdb-compile 2>&1 | tee %t.compile
2 // RUN: env OMP_SCHEDULE=static,5 %gdb-run 2>&1 | tee %t.out | FileCheck %s
4 #include "../ompt_plugin.h"
11 printf("Application: Process %d started.\n", getpid());
13 omp_set_num_threads(3);
14 omp_set_max_active_levels(10);
16 #pragma omp parallel // parallel region begins
18 printf("Outer region - thread_ID: %d\n", omp_get_thread_num());
20 #pragma omp parallel num_threads(2) // nested parallel region 1
22 printf("Inner region - thread_ID: %d\n", omp_get_thread_num());
24 #pragma omp parallel num_threads(2) // nested parallel region 2
28 for (i
= 0; i
< 10; i
++)
37 // CHECK-NOT: OMPT-OMPD mismatch
38 // CHECK-NOT: Python Exception
39 // CHECK-NOT: The program is not being run.