[Openmp-commits] [PATCH] D96999: [OpenMP] Fix always, from and delete for data absent at exit

Joel E. Denny via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Feb 18 14:33:42 PST 2021


jdenny created this revision.
jdenny added reviewers: grokos, jdoerfert, RaviNarayanaswamy.
Herald added subscribers: guansong, yaxunl.
jdenny requested review of this revision.
Herald added a subscriber: sstefan1.
Herald added a project: OpenMP.

Without this patch, there's a runtime error for those map types at
exit from an "omp target data" or at "omp target exit data", but the 
spec says the list item should be ignored.

This patch tests that fix in data_absent_at_exit.c, and it also
improves other testing for data that is not fully present at exit.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96999

Files:
  openmp/libomptarget/src/omptarget.cpp
  openmp/libomptarget/test/mapping/data_absent_at_exit.c
  openmp/libomptarget/test/mapping/present/target_exit_data.c
  openmp/libomptarget/test/mapping/present/target_exit_data_delete.c
  openmp/libomptarget/test/mapping/present/target_exit_data_release.c
  openmp/libomptarget/test/mapping/target_data_array_extension_at_exit.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96999.324777.patch
Type: text/x-patch
Size: 6789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210218/ad180d94/attachment.bin>


More information about the Openmp-commits mailing list