[all-commits] [llvm/llvm-project] 6ca034: [OpenMP][libomptarget] Notify the plugins regardin...
Kevin Sala Penadés via All-commits
all-commits at lists.llvm.org
Mon Feb 6 01:10:18 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6ca034644d59dde3e00c1a41196bb9ba44bc1b17
https://github.com/llvm/llvm-project/commit/6ca034644d59dde3e00c1a41196bb9ba44bc1b17
Author: Kevin Sala <kevin.sala at bsc.es>
Date: 2023-02-06 (Mon, 06 Feb 2023)
Changed paths:
M openmp/libomptarget/include/device.h
M openmp/libomptarget/include/omptargetplugin.h
M openmp/libomptarget/include/rtl.h
M openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
M openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
M openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
M openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
M openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp
M openmp/libomptarget/src/device.cpp
M openmp/libomptarget/src/omptarget.cpp
M openmp/libomptarget/src/rtl.cpp
M openmp/libomptarget/test/lit.cfg
Log Message:
-----------
[OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings
The NextGen plugins use the information regarding new mapping/unmappings to
lock/unlock the corresponding host buffer and speed up the host-device memory
transfers involving those buffers. The locking/unlocking is disabled by default
and can be enabled by 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.
Differential Revision: https://reviews.llvm.org/D142514
More information about the All-commits
mailing list