From d271172ab1769bcf1ddf1cbf4179d0fe1014e94f Mon Sep 17 00:00:00 2001 From: Neo Zhang Jianyu Date: Tue, 8 Apr 2025 10:32:18 +0800 Subject: [PATCH] Update ggml/src/ggml-sycl/ggml-sycl.cpp --- ggml/src/ggml-sycl/ggml-sycl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml/src/ggml-sycl/ggml-sycl.cpp b/ggml/src/ggml-sycl/ggml-sycl.cpp index dff9f8d4c4..a01e92b1b7 100644 --- a/ggml/src/ggml-sycl/ggml-sycl.cpp +++ b/ggml/src/ggml-sycl/ggml-sycl.cpp @@ -372,6 +372,7 @@ static void ggml_backend_sycl_buffer_set_tensor(ggml_backend_buffer_t buffer, auto stream = &(dpct::dev_mgr::instance().get_device(ctx->device).default_queue()); SYCL_CHECK( CHECK_TRY_ERROR(dpct::dev_mgr::instance().get_device(ctx->device).queues_wait_and_throw())); + //note: use host buffer to save the data from mmap(), then copy to device. It's workaround for mmap() issue on PVC GPU. char* host_buf = (char*)malloc(size); memcpy(host_buf, data, size); SYCL_CHECK(