From 6cd8accb92a0f9e59e44d7e51440bd814a9bb192 Mon Sep 17 00:00:00 2001 From: Simone Pellegrini <37897514+simpel01@users.noreply.github.com> Date: Thu, 29 Mar 2018 18:51:02 +0200 Subject: [PATCH] Correct the use of OpenMP private (#400) --- src/runtime/OMP/OMPScheduler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/OMP/OMPScheduler.cpp b/src/runtime/OMP/OMPScheduler.cpp index d68b8af02..c6802f3e8 100644 --- a/src/runtime/OMP/OMPScheduler.cpp +++ b/src/runtime/OMP/OMPScheduler.cpp @@ -71,7 +71,7 @@ void OMPScheduler::schedule(ICPPKernel *kernel, unsigned int split_dimension) } else { - #pragma omp parallel private(info) num_threads(info.num_threads) + #pragma omp parallel firstprivate(info) num_threads(info.num_threads) { const int tid = omp_get_thread_num(); Window win = max_window.split_window(split_dimension, tid, info.num_threads); -- 2.34.1