On Fri, 14 Jun 2019, Jakub Jelinek wrote:
> Hi!
>
> OpenMP 5.0 introduced scan reductions, like:
> #pragma omp simd reduction (inscan, +:r)
> for (int i = 0; i < 1024; i++)
> {
> r += a[i];
> #pragma omp scan inclusive(r)
> b[i] = r;
> }
> where there are 2 parts of
Hi!
OpenMP 5.0 introduced scan reductions, like:
#pragma omp simd reduction (inscan, +:r)
for (int i = 0; i < 1024; i++)
{
r += a[i];
#pragma omp scan inclusive(r)
b[i] = r;
}
where there are 2 parts of code in each iteration, one which is supposed
to compute the valu