summaryrefslogtreecommitdiffstats
path: root/openmp
diff options
context:
space:
mode:
authorJoachim Protze <protze@itc.rwth-aachen.de>2018-03-01 11:26:15 +0000
committerJoachim Protze <protze@itc.rwth-aachen.de>2018-03-01 11:26:15 +0000
commitf5aebc27ade6094d38d778ddf9d9c8c4c6eac6e0 (patch)
tree4fe195a4ef0f8327bb2ff1141ebc4f90afdcdbfd /openmp
parentf3e93b23f74b3d1777062d37c6dfbc8cee0396e0 (diff)
downloadbcm5719-llvm-f5aebc27ade6094d38d778ddf9d9c8c4c6eac6e0.tar.gz
bcm5719-llvm-f5aebc27ade6094d38d778ddf9d9c8c4c6eac6e0.zip
[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
Diffstat (limited to 'openmp')
-rw-r--r--openmp/runtime/test/ompt/tasks/task_types.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openmp/runtime/test/ompt/tasks/task_types.c b/openmp/runtime/test/ompt/tasks/task_types.c
index 30c6ca7ff95..6f2fdb3d5e3 100644
--- a/openmp/runtime/test/ompt/tasks/task_types.c
+++ b/openmp/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);
OpenPOWER on IntegriCloud