[llvm] [offload] Use pinned memory for KLE (PR #213767)
Robert Imschweiler via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 03:21:43 PDT 2026
================
@@ -1027,6 +1027,20 @@ struct GenericDeviceTy : public DeviceAllocatorTy {
virtual Error queryAsyncImpl(__tgt_async_info &AsyncInfo, bool ReleaseQueue,
bool *IsQueueWorkCompleted) = 0;
+ /// Indicate whether dataSubmitImpl has a faster path for host buffers that
+ /// are registered as pinned memory. If a plugin returns true, the kernel
+ /// launch environment is copied into a pinned host buffer before it is
+ /// submitted, so that its transfer takes that path.
+ virtual bool hasFastSubmitFromPinnedMemory() const { return false; }
----------------
ro-i wrote:
done
https://github.com/llvm/llvm-project/pull/213767
More information about the llvm-commits
mailing list