sycl : enhance the api to support peer-to-peer copy (#27550)

This commit is contained in:
Neo Zhang
2026-09-03 10:41:07 +03:00
committed by GitHub
parent d646c9d155
commit 0df974d777
+1
View File
@@ -742,6 +742,7 @@ static void dev2dev_memcpy(int device_dst, sycl::queue &q_dst, int device_src, s
if (q_dst.get_device().ext_oneapi_can_access_peer(q_src.get_device(),
sycl::ext::oneapi::peer_access::access_supported)) {
GGML_SYCL_DEBUG("[SYCL] dev2dev memcpy by SYCL\n");
q_dst.get_device().ext_oneapi_enable_peer_access(q_src.get_device());
SYCL_CHECK(CHECK_TRY_ERROR(q_dst.memcpy(ptr_dst, ptr_src, size).wait()));
return;
}