[Openmp-commits] [openmp] r326428 - [OMPT] Fix task-type test with GCC
Joachim Protze via Openmp-commits
openmp-commits at lists.llvm.org
Thu Mar 1 03:26:15 PST 2018
Author: jprotze
Date: Thu Mar 1 03:26:15 2018
New Revision: 326428
URL: http://llvm.org/viewvc/llvm-project?rev=326428&view=rev
Log:
[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
Modified:
openmp/trunk/runtime/test/ompt/tasks/task_types.c
Modified: openmp/trunk/runtime/test/ompt/tasks/task_types.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/tasks/task_types.c?rev=326428&r1=326427&r2=326428&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/tasks/task_types.c (original)
+++ openmp/trunk/runtime/test/ompt/tasks/task_types.c Thu Mar 1 03:26:15 2018
@@ -5,6 +5,9 @@
#include <math.h>
int main() {
+ //initialize the OpenMP runtime
+ omp_get_num_threads();
+
// initial task
print_ids(0);
More information about the Openmp-commits
mailing list