I came across an OpenMP code that had the collapse clause, which was new to me. I\'m trying to understand what it means, but I don\'t think I have fully grasped it\'s implic
If your purpose is balancing the load over increasing rows, assuming the workload for each item is regular or well scattered, then how about folding the row indices in half, and forgetting about the collapse clause?
#pragma omp for
for (int iy0=0; iy0= n/2) iy = n-1 -iy0 +n/2;
for (int ix=iy+1; ix