[llvm] [libsycl] Implement memcpy API (PR #205369)
Kseniya Tikhomirova via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 3 03:23:20 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)
----------------
KseniyaTikhomirova wrote:
real offload api don't return error for !Queue, do you change it here intentionally?
https://github.com/llvm/llvm-project/pull/205369
More information about the llvm-commits
mailing list