This patch fixes the issue:
int a[100];
p = &a[0];
#pragma omp target map(a)
p[0] = p[99] = 3;
where 'p' is predetermined firstprivate, i.e. it is firstprivatized
but its address gets updated to the device address of 'a' as there is
associated storage for the value of 'p', i.e. its po
On Fri, Dec 08, 2023 at 03:28:59PM +0100, Tobias Burnus wrote:
> This patch fixes the issue:
>
> int a[100];
> p = &a[0];
>
> #pragma omp target map(a)
> p[0] = p[99] = 3;
>
> where 'p' is predetermined firstprivate, i.e. it is firstprivatized
> but its address gets updated to the devi