[patch] OpenMP: Handle same-directive mapped vars with pointer predefined firstprivate [PR110639]

2023-12-08 Thread Tobias Burnus
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

Re: [patch] OpenMP: Handle same-directive mapped vars with pointer predefined firstprivate [PR110639]

2023-12-08 Thread Jakub Jelinek
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