[Openmp-commits] [PATCH] D83062: [OpenMP] Implement TR8 `present` map type modifier in runtime (2/2)
Joel E. Denny via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jul 16 08:54:31 PDT 2020
jdenny added inline comments.
================
Comment at: openmp/libomptarget/src/omptarget.cpp:416
+ DPxPTR(HstPtrBegin), data_size);
+ return OFFLOAD_FAIL;
+ }
----------------
This is right for `omp target exit data`, as in `openmp/libomptarget/test/mapping/present/target_exit_data.c`.
I think it's wrong for `omp target data`. My read of TR8 is that the present assertion does not happen on exit from a region. For example:
```
#pragma omp target data map(alloc:x)
{
#pragma omp target data map(present,alloc:x)
{
#pragma omp target exit data map(delete:x)
} // fails here but shouldn't
}
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83062/new/
https://reviews.llvm.org/D83062
More information about the Openmp-commits
mailing list