From afae94f309320809156b3cd6096d47fcd6764299 Mon Sep 17 00:00:00 2001 From: James Noss Date: Thu, 15 Jun 2017 12:28:32 -0400 Subject: [PATCH] Make main CTE loop over columns dynamic rather than static This should reduce possible runtimes being held up by contended cores when run as the default 'greedy' mode. resolves #152 Signed-off-by: James Noss --- ctegen2/ctegen2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctegen2/ctegen2.c b/ctegen2/ctegen2.c index 45250c098..db8d90e27 100644 --- a/ctegen2/ctegen2.c +++ b/ctegen2/ctegen2.c @@ -97,7 +97,7 @@ int inverseCTEBlur(const SingleGroup * input, SingleGroup * output, SingleGroup Bool localOK = True; {unsigned j; #ifdef _OPENMP - #pragma omp for schedule(static) + #pragma omp for schedule(dynamic) #endif for (j = 0; j < nColumns; ++j) {