Skip to content

Commit

Permalink
Make main CTE loop over columns dynamic rather than static
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jamienoss committed Jun 15, 2017
1 parent fa6b200 commit afae94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctegen2/ctegen2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit afae94f

Please sign in to comment.