From f5aebc27ade6094d38d778ddf9d9c8c4c6eac6e0 Mon Sep 17 00:00:00 2001 From: Joachim Protze Date: Thu, 1 Mar 2018 11:26:15 +0000 Subject: [PATCH] [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 llvm-svn: 326428 --- openmp/runtime/test/ompt/tasks/task_types.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openmp/runtime/test/ompt/tasks/task_types.c b/openmp/runtime/test/ompt/tasks/task_types.c index 30c6ca7..6f2fdb3 100644 --- a/openmp/runtime/test/ompt/tasks/task_types.c +++ b/openmp/runtime/test/ompt/tasks/task_types.c @@ -5,6 +5,9 @@ #include int main() { + //initialize the OpenMP runtime + omp_get_num_threads(); + // initial task print_ids(0); -- 2.7.4