aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimone Pellegrini <37897514+simpel01@users.noreply.github.com>2018-03-29 18:51:02 +0200
committerAnthony Barbier <Anthony.barbier@arm.com>2018-03-29 17:51:02 +0100
commit6cd8accb92a0f9e59e44d7e51440bd814a9bb192 (patch)
tree6328795c1d20136e56d5e4cfde61b979785c71ca
parentbc0bbac5859707be771b5e2ea7295c893fc2d0ff (diff)
downloadComputeLibrary-6cd8accb92a0f9e59e44d7e51440bd814a9bb192.tar.gz
Correct the use of OpenMP private (#400)
-rw-r--r--src/runtime/OMP/OMPScheduler.cpp2
1 files changed, 1 insertions, 1 deletions
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);