[OMPT] Add missing ompt_get_num_procs function
authorJoachim Protze <protze@itc.rwth-aachen.de>
Thu, 21 Dec 2017 14:36:30 +0000 (14:36 +0000)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Thu, 21 Dec 2017 14:36:30 +0000 (14:36 +0000)
commitf375f4b49a72cf11e512aeaf25c2944d3d0b0a67
tree8e7c9c02c338cb1b355ada3d6217bb1767de2526
parent636510a702ca5bdf938942e1b59f840c23435265
[OMPT] Add missing ompt_get_num_procs function

This function is defined in OpenMP-TR6 section 4.1.5.1.6
The functions was not implemented yet.

Since ompt-functions can only be called after the runtime was initialized and
has loaded a tool, it can assume the runtime to be initialized. In contrast
to omp_get_num_procs which needs to check whether the runtime is initialized.

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

llvm-svn: 321269
openmp/runtime/src/include/50/ompt.h.var
openmp/runtime/src/ompt-general.cpp
openmp/runtime/test/ompt/callback.h
openmp/runtime/test/ompt/misc/api_calls.c