1 // RUN: %gdb-compile-and-run 2>&1 | tee %t.out | FileCheck %s
3 #include "../ompt_plugin.h"
9 void createPthreads() {
11 pthread_t threads
[numThreads
];
13 for (i
= 0; i
< numThreads
; ++i
)
14 pthread_create(&threads
[i
], NULL
, ompd_tool_break
, NULL
);
16 for (i
= 0; i
< numThreads
; ++i
)
17 pthread_join(threads
[i
], NULL
);
21 omp_set_num_threads(4);
22 printf("Application: Process %d started.\n", getpid());
23 createPthreads(); // thread_data is set to 0x0 if called
27 { ompd_tool_test(0); }
32 // CHECK-NOT: OMPT-OMPD mismatch
33 // CHECK-NOT: Python Exception
34 // CHECK-NOT: The program is not being run.