[llvm] [libsycl] Implement memcpy API (PR #205369)

Sergey Semenov via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 3 03:49:24 PDT 2026


================
@@ -276,7 +286,17 @@ void mock::MockLiboffload::initDefault() {
         }
         return OL_SUCCESS;
       });
-
+  ON_CALL(*this, olMemcpy)
+      .WillByDefault([this](ol_queue_handle_t Queue, void *DstPtr,
+                            ol_device_handle_t DstDevice, const void *SrcPtr,
+                            ol_device_handle_t SrcDevice,
+                            size_t Size) -> ol_result_t {
+        if (!Queue || !DstDevice || !DstDevice)
----------------
sergey-semenov wrote:

Yes, I don't expect the runtime to use the synchronous version of the API.

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


More information about the llvm-commits mailing list