OpenMP-Validation-and-Verification / OpenMP_VV

OpenMP Offloading Validation & Verification Suite; Official repository. We have migrated from bitbucket!! For documentation, results, publication and presentations, please check out our website ->
https://crpl.cis.udel.edu/ompvvsollve/
Other
54 stars 19 forks source link

test_target_memcpy_rect_async_{dep,no_}obj.F90: null ptr, fix idx calc #758

Closed tob2 closed 1 year ago

tob2 commented 1 year ago

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

tob2 commented 1 year ago

@fel-cab @spophale – ping, please review

(@seyonglee – thanks for the quick review!)