[Openmp-commits] [PATCH] D12998: Overhaul OMPT initialization interface

John Mellor-Crummey via Openmp-commits openmp-commits at lists.llvm.org
Sat Sep 19 16:16:16 PDT 2015


jmellorcrummey created this revision.
jmellorcrummey added subscribers: openmp-commits, llvm-commits.
jmellorcrummey set the repository for this revision to rL LLVM.

The OMPT specification has changed. This revision brings the LLVM OpenMP implementation up to date.

Technical overview of changes: 

Previously, a public weak symbol ompt_initialize was called after the OpenMP runtime is initialized. The new interface calls a global weak symbol ompt_tool prior to initialization. If a tool is present, ompt_tool returns a pointer to a function that matches the signature for ompt_initialize. After OpenMP is initialized the function pointer is called to initialize a tool.

Knowing that OMPT will be enabled before initialization allows OMPT support to be initialized as part of initialization instead of back patching initialization of OMPT support after the fact. 

Post OpenMP initialization support has been generalized moves from ompt-specific.c into ompt-general.c, since the OMPT initialization logic is no longer implementation specific.

Repository:
  rL LLVM

http://reviews.llvm.org/D12998

Files:
  runtime/src/exports_so.txt
  runtime/src/include/30/ompt.h.var
  runtime/src/include/40/ompt.h.var
  runtime/src/include/41/ompt.h.var
  runtime/src/kmp_runtime.c
  runtime/src/ompt-general.c
  runtime/src/ompt-internal.h
  runtime/src/ompt-specific.c
  runtime/src/ompt-specific.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12998.35185.patch
Type: text/x-patch
Size: 15805 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20150919/930c277d/attachment.bin>


More information about the Openmp-commits mailing list