brintos

brintos / llvm-project-archived public Read only

0
0
Text · 833 B · 27062ad Raw
33 lines · c
1// clang-format off2// RUN: %libomp-compile-and-run | FileCheck %s3// REQUIRES: ompt4// clang-format on5#include "callback.h"6#include "omp_testsuite.h"7 8int main() {9  go_parallel_nthreads(2);10 11  printf("Before ompt_finalize_tool\n");12  ompt_finalize_tool();13  printf("After ompt_finalize_tool\n");14 15  return get_exit_value();16}17 18// clang-format off19// CHECK: 0: NULL_POINTER=[[NULL:.*$]]20// CHECK: {{^}}[[THREAD_ID:[0-9]+]]: ompt_event_thread_begin:21// CHECK-SAME: thread_type=ompt_thread_initial=122 23// CHECK: {{^}}[[THREAD_ID]]: ompt_event_parallel_begin24// CHECK: {{^}}[[THREAD_ID]]: ompt_event_parallel_end25 26// CHECK: {{^}}Before ompt_finalize_tool27 28// CHECK: {{^}}[[THREAD_ID]]: ompt_event_thread_end: thread_id=[[THREAD_ID]]29// CHECK: 0: ompt_event_runtime_shutdown30 31// CHECK: {{^}}After ompt_finalize_tool32// clang-format on33