sycl : pinned memory use right device context instead of 0 (llama/28895)

This commit is contained in:
Łukasz Ślusarczyk
2026-09-23 20:46:47 +03:00
committed by Georgi Gerganov
parent 34a4c124f7
commit 0ecf57d7d7
2 changed files with 48 additions and 25 deletions
+2
View File
@@ -36,6 +36,8 @@ GGML_BACKEND_API void ggml_backend_sycl_comm_free(void * comm_ctx);
GGML_BACKEND_API bool ggml_backend_sycl_comm_allreduce_tensor(void * comm_ctx, struct ggml_tensor ** tensors);
// pinned host buffer for use with the CPU backend for faster copies between CPU and GPU
// pins on device 0 - a copy between another device and this memory can fail,
// use ggml_backend_dev_host_buffer_type to pin on the device that does the copy
GGML_BACKEND_API ggml_backend_buffer_type_t ggml_backend_sycl_host_buffer_type(void);
GGML_BACKEND_API void ggml_backend_sycl_print_sycl_devices(void);