From c1d2cf9a66def00b941d7b2d262b5539089b5d86 Mon Sep 17 00:00:00 2001 From: Mathieu Gravey Date: Thu, 14 Nov 2019 21:43:49 +0100 Subject: [PATCH] correct conciderTiAsCircular inclution for OpenMP --- src/ds-l.cpp | 2 +- src/qs.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ds-l.cpp b/src/ds-l.cpp index f72d981..b421746 100644 --- a/src/ds-l.cpp +++ b/src/ds-l.cpp @@ -781,7 +781,7 @@ int main(int argc, char const *argv[]) { #endif - #pragma omp parallel for proc_bind(spread) num_threads(nbThreads) default(none) shared(computeDeviceModuleArray) firstprivate(nbThreadsLastLevel,coeficientMatrix, smm, nbThreads, needCrossMesurement) + #pragma omp parallel for proc_bind(spread) num_threads(nbThreads) default(none) shared(computeDeviceModuleArray) firstprivate(conciderTiAsCircular, nbThreadsLastLevel,coeficientMatrix, smm, nbThreads, needCrossMesurement) for (unsigned int i = 0; i < nbThreads; ++i) { //#pragma omp critical (createDevices) diff --git a/src/qs.cpp b/src/qs.cpp index 41fde5a..87e6253 100644 --- a/src/qs.cpp +++ b/src/qs.cpp @@ -810,7 +810,7 @@ int main(int argc, char const *argv[]) { #endif - #pragma omp parallel for proc_bind(spread) num_threads(nbThreads) default(none) shared(computeDeviceModuleArray) firstprivate(nbThreadsLastLevel,coeficientMatrix, smm, nbThreads, needCrossMesurement) + #pragma omp parallel for proc_bind(spread) num_threads(nbThreads) default(none) shared(computeDeviceModuleArray) firstprivate(conciderTiAsCircular, nbThreadsLastLevel,coeficientMatrix, smm, nbThreads, needCrossMesurement) for (unsigned int i = 0; i < nbThreads; ++i) { //#pragma omp critical (createDevices)