OpenMP_VV icon indicating copy to clipboard operation
OpenMP_VV copied to clipboard

test_target_update_mapper_from_discontiguous.F90 mapper not strided

Open bcornille opened this issue 2 years ago • 1 comments

Describe the bug The Fortran version of this test has mapper

        !$omp declare mapper(newvec :: v)&
        !$omp& map(v, v%data(1:v%len))

whereas the C version has mapper

#pragma omp declare mapper(newvec_t v) map(v, v.data[0:v.len:2])

The stride is not present in the Fortran test so does not appear to be testing the same functionality. It would probably be prudent to adjust the test to ensure the intermediate elements are not updated after being set in the target region.

Test that it applies to test_target_update_mapper_from_discontiguous.F90

Expected behavior I expect the Fortran version of this test mapper to have mapper

        !$omp declare mapper(newvec :: v)&
        !$omp& map(v, v%data(1:v%len:2))

bcornille avatar Nov 30 '22 15:11 bcornille