LLVM OpenMP 22.0.0git
finalize_tool.c
Go to the documentation of this file.
1// clang-format off
2// RUN: %libomp-compile-and-run | FileCheck %s
3// REQUIRES: ompt
4// clang-format on
5#include "callback.h"
6#include "omp_testsuite.h"
7
8int main() {
10
11 printf("Before ompt_finalize_tool\n");
13 printf("After ompt_finalize_tool\n");
14
15 return get_exit_value();
16}
17
18// clang-format off
19// CHECK: 0: NULL_POINTER=[[NULL:.*$]]
20// CHECK: {{^}}[[THREAD_ID:[0-9]+]]: ompt_event_thread_begin:
21// CHECK-SAME: thread_type=ompt_thread_initial=1
22
23// CHECK: {{^}}[[THREAD_ID]]: ompt_event_parallel_begin
24// CHECK: {{^}}[[THREAD_ID]]: ompt_event_parallel_end
25
26// CHECK: {{^}}Before ompt_finalize_tool
27
28// CHECK: {{^}}[[THREAD_ID]]: ompt_event_thread_end: thread_id=[[THREAD_ID]]
29// CHECK: 0: ompt_event_runtime_shutdown
30
31// CHECK: {{^}}After ompt_finalize_tool
32// clang-format on
static ompt_finalize_tool_t ompt_finalize_tool
Definition callback.h:161
int main()
static void go_parallel_nthreads(int nthreads)
static int get_exit_value()