commit | f544528c780f182b8ff93398c9ef303cf22ebcf9 | [log] [tgz] |
---|---|---|
author | Joachim Protze <protze@itc.rwth-aachen.de> | Thu Mar 01 11:26:15 2018 +0000 |
committer | Joachim Protze <protze@itc.rwth-aachen.de> | Thu Mar 01 11:26:15 2018 +0000 |
tree | 50dfb1dd82afbd65b7229dfb74f552bc76e8a00b | |
parent | 884f53886a5c10d22d4004e4e65b7b1a1a4e74b3 [diff] |
[OMPT] Fix task-type test with GCC This is similar to D43882. The runtime needs to be initialized before calling print_ids(0) http://lab.llvm.org:8011/builders/openmp-gcc-x86_64-linux-debian/builds/60 Differential Revision: https://reviews.llvm.org/D43897 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@326428 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/runtime/test/ompt/tasks/task_types.c b/runtime/test/ompt/tasks/task_types.c index 30c6ca7..6f2fdb3 100644 --- a/runtime/test/ompt/tasks/task_types.c +++ b/runtime/test/ompt/tasks/task_types.c
@@ -5,6 +5,9 @@ #include <math.h> int main() { + //initialize the OpenMP runtime + omp_get_num_threads(); + // initial task print_ids(0);