OpenMP Offloading Validation & Verification Suite; Official repository. We have migrated from bitbucket!! For documentation, results, publication and presentations, please check out our website ->
As pointer targets get automatically copied, 'fptr' either needs to be disassociated (nullified) before mapping - or it could be defined inside the target region (with 'block, ... end block').
Additionally there was an off-by-one issue with the pointer indices; an alternative would be a two-dimensional array and using that shape in 'c_f_pointer' call - and such leaving the calculation to the compiler.
As pointer targets get automatically copied, 'fptr' either needs to be disassociated (nullified) before mapping - or it could be defined inside the target region (with 'block, ... end block').
Additionally there was an off-by-one issue with the pointer indices; an alternative would be a two-dimensional array and using that shape in 'c_f_pointer' call - and such leaving the calculation to the compiler.
@seyonglee @fel-cab @spophale – please review