[Openmp-commits] [PATCH] D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings

Kevin Sala via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 3 10:33:29 PST 2023


kevinsala updated this revision to Diff 494687.
kevinsala added a comment.

The locking of mapped host buffers is disabled by default. Can be enabled through the `LIBOMPTARGET_LOCK_MAPPED_HOST_BUFFERS` envar. The envar accepts boolean values (on/off) and a special option:

- `off`:  Do not lock mapped host buffers (default).
- `on`:  Lock mapped host buffers automatically, but do not report lock failures if the plugin fails to lock them.
- `mandatory`: Lock mapped host buffers automatically and treat locking failures in the plugins as fatal errors. This option may be useful for debugging purposes.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142514/new/

https://reviews.llvm.org/D142514

Files:
  openmp/libomptarget/include/device.h
  openmp/libomptarget/include/omptargetplugin.h
  openmp/libomptarget/include/rtl.h
  openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
  openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
  openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
  openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
  openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp
  openmp/libomptarget/src/device.cpp
  openmp/libomptarget/src/omptarget.cpp
  openmp/libomptarget/src/rtl.cpp
  openmp/libomptarget/test/lit.cfg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142514.494687.patch
Type: text/x-patch
Size: 35107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230203/b25fed9e/attachment-0001.bin>


More information about the Openmp-commits mailing list