Re: [Patch][fortran,omp-low.c] Fix OpenMP's use_device_ptr clause with array descriptors

2019-09-30 Thread Tobias Burnus
Hi all, found bug in the run test of the patch (pending review) – fixing it still passes (with nvptx): On 9/27/19 4:52 PM, Tobias Burnus wrote: libgomp/testsuite/libgomp.fortran/use_device_ptr1.f90 […] + call use_device_ptr_sub(arg2_AA, arg2_BB, arg2_CC, arg2_DD, arg2_EE, arg2_FF, AptrA,

[Patch][fortran,omp-low.c] Fix OpenMP's use_device_ptr clause with array descriptors

2019-09-27 Thread Tobias Burnus
Hi all, using !$omp target data map(A) use_device_ptr(A) call foo(c_loc(A)) !$omp end target data fails on trunk if "A" is not a simple pointer but an array with descriptor. For the use_device_ptr clause, one needs to replace the host pointer address by the address on the device (done by call