FGPU icon indicating copy to clipboard operation
FGPU copied to clipboard

`openmp/target_map/derived_types` may need additional mapping

Open TApplencourt opened this issue 3 years ago • 0 comments

Hi,

If my comprehension of the OpenMP specification is correct (who is probably not the case...) in openmp/target_map/derived_types you are mapping only the pointer to the data (in setud_types wit !$omp target enter data map(to:op_ptr)) but you are not mapping the data pointed by the pointer (missing a !$omp target enter data map(to:op%array) in setup_values).
This causes segmentation fault in all the compiler I tested (ifx, gfortran, nvfortran).

Hope that Help, Regards, Thomas

TApplencourt avatar May 20 '21 17:05 TApplencourt