[OMPT] Return appropiate values for ompt runtime entry points for non-OpenMP threads
authorJoachim Protze <protze@itc.rwth-aachen.de>
Wed, 17 Jan 2018 10:05:55 +0000 (10:05 +0000)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Wed, 17 Jan 2018 10:05:55 +0000 (10:05 +0000)
commit1dc2afdcaf887a322a58fa12d616a3097d9d47e9
tree0997fad34e916e1b2b4efc8d661192ef9bef992b
parent2ae6037dd150893c6f54a67dcc4664003306ea8c
[OMPT] Return appropiate values for ompt runtime entry points for non-OpenMP threads

When the current thread is not an (initialized) OpenMP thread, the runtime
entry points return values that correspond to "not available" or similar

Differential Revision: https://reviews.llvm.org/D41167

llvm-svn: 322620
openmp/runtime/src/ompt-general.cpp
openmp/runtime/src/ompt-specific.cpp
openmp/runtime/test/ompt/misc/api_calls_from_other_thread.cpp [new file with mode: 0644]