Commit Graph
6 Commits
Author SHA1 Message Date
Joachim Protze dac3432cdb [OMPT] Handling of the events of initial-task-begin and initial-task-end
OpenMP 5.0 says that the callback for the events initial-task-begin and
initial-task-end has to be ompt_callback_implicit_task.

Patch by Tim Cramer

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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@361157 91177308-0d34-0410-b5e6-96231b3b80d8
2019-05-20 14:21:36 +00:00
Dimitry Andric 28e31a2d58 Fix interoperability test compilation on FreeBSD
Summary:
While building the 8.0 releases on FreeBSD, I encountered the following
error in the regression tests, where ompt/misc/interoperability.cpp
failed to compile, with:

```
projects/openmp/runtime/test/ompt/misc/interoperability.cpp:7:10: fatal error: 'alloca.h' file not found
#include <alloca.h>
         ^~~~~~~~~~
```

Like on NetBSD, alloca(3) is defined in <stdlib.h> instead.

Reviewers: emaste, jlpeyton, krytarowski, mgorny, protze.joachim

Reviewed By: jlpeyton

Subscribers: jdoerfert, openmp-commits

Tags: #openmp

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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@356936 91177308-0d34-0410-b5e6-96231b3b80d8
2019-03-25 18:37:49 +00:00
Michal Gorny 84d57ed8c5 [test] [runtime] Do not include alloca.h on NetBSD
On NetBSD, alloca() is in stdlib.h and there is no alloca.h.  Adjust
the includes appopriately.

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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@348856 91177308-0d34-0410-b5e6-96231b3b80d8
2018-12-11 15:39:30 +00:00
Joachim Protze 832e165562 [OMPT] Use alloca() to force availability of frame pointer
When compiling with icc, there is a problem with reenter frame addresses in
parallel_begin callbacks in the interoperability.c testcase. (The address is
not available. thus NULL)
Using alloca() forces availability of the frame pointer.

Patch provided by Simon Convent

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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@336088 91177308-0d34-0410-b5e6-96231b3b80d8
2018-07-02 09:13:38 +00:00
Jonas Hahnfeld 005e60ce38 [OMPT] Fix interoperability test with GCC
We have to ensure that the runtime is initialized _before_ waiting
for the two started threads to guarantee that the master threads
post their ompt_event_thread_begin before the worker threads. This
is not guaranteed in the parallel region where one worker thread
could start before the other master thread has invoked the callback.

The problem did not happen with Clang becauses the generated code
calls __kmpc_global_thread_num() and cashes its result for functions
that contain OpenMP pragmas.

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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@326435 91177308-0d34-0410-b5e6-96231b3b80d8
2018-03-01 14:03:18 +00:00
Joachim Protze 36a7548229 [OMPT] Add interoperability testcase
Test whether OMPT-callbacks for two threads that initiate a parallel region are correct.

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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@325423 91177308-0d34-0410-b5e6-96231b3b80d8
2018-02-17 09:40:08 +00:00