[Openmp-commits] [PATCH] D61657: Add implementation to two OMPT API routines

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed May 8 00:57:29 PDT 2019


protze.joachim added a comment.

I think, a test for ompt_finalize_tool could be something along:

  #include <callback.h>
  int main() {
  #pragma omp parallel num_threads(2)
    {
    }
    printf("Before ompt_finalize_tool\n")
    ompt_finalize_tool();
    printf("After ompt_finalize_tool\n")
    return 0;
  }

And then test, that all completion events (implicit task-end, thread-end ) are written between Before and After


Repository:
  rOMP OpenMP

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61657/new/

https://reviews.llvm.org/D61657





More information about the Openmp-commits mailing list