Add OMP static scheduling throughout, don't depend on heuristics

This commit is contained in:
christiealappatt
2020-07-29 14:16:35 +02:00
parent b43735168a
commit 14cbb9290e
8 changed files with 8 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ double sum(
#pragma omp parallel
{
LIKWID_MARKER_START("SUM");
#pragma omp for reduction(+:sum)
#pragma omp for reduction(+:sum) schedule(static)
for (int i=0; i<N; i++) {
sum += a[i];
}