[llvm] [OFFLOAD] Add memory data locking API for libomptarget migration (PR #173138)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 22 18:48:03 PST 2025


================
@@ -1214,5 +1214,20 @@ Error olLaunchHostFunction_impl(ol_queue_handle_t Queue,
                                                 Queue->AsyncInfo);
 }
 
+Error olMemDataLock_impl(ol_device_handle_t Device, void *Ptr, size_t Size,
+                         void **LockedPtr) {
+  Expected<void *> LockedPtrOrErr = Device->Device->dataLock(Ptr, Size);
----------------
fineg74 wrote:

It looks like it is currently implemented on AMD only and that the use of this API is controlled at higher level by configuring an allocator.

https://github.com/llvm/llvm-project/pull/173138


More information about the llvm-commits mailing list