Skip to content
Snippets Groups Projects
Commit 19dbcbf6 authored by Christof Kaufmann's avatar Christof Kaufmann
Browse files

build: Add OpenMP reduction to support conda compiler

parent f605e6e7
Branches
No related tags found
No related merge requests found
......@@ -200,6 +200,7 @@ estarfm_impl_detail::SumAndTolHelper::Stats estarfm_impl_detail::SumAndTolHelper
unsigned int maskChannel = c < m_win.channels() ? c : 0;
int xmax = h1_win.width();
int ymax = h1_win.height();
#pragma omp declare reduction(+ : Stats : omp_out += omp_in)
#pragma omp parallel for num_threads(opt.getNumberThreads()) reduction(+ : s)
for (int y = 0; y < ymax; ++y) {
for (int x = 0; x < xmax; ++x) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment