sycl: add GGML_SYCL_USE_ASYNC_MEM_OP env toggle#22153
sycl: add GGML_SYCL_USE_ASYNC_MEM_OP env toggle#22153aicss-genai wants to merge 2 commits intoggml-org:masterfrom
Conversation
Signed-off-by: Chun Tao <chun.tao@intel.com>
|
Hi @aicss-genai, thanks for your contribution! Per our contribution guidelines, the automated PR checker found the following issue(s) that need your attention:
Please note that maintainers reserve the right to make final decisions on PRs. If you believe there is a mistake, please comment below. |
NeoZhangJianyu
left a comment
There was a problem hiding this comment.
Async Mem is used for SYCL graph.
Following code is mandatory:
g_ggml_sycl_use_async_mem_op = !g_ggml_sycl_disable_graph
I don't see the value of new global parameter.
Without SYCL graph, only use async memory copy has not benefit.
Is there any test result to show the benefit of this PR?
Thank you!
Overview
Authors
Exposes async USM allocation/free as an independent env knob.
Previously
g_ggml_sycl_use_async_mem_opwas implicitly tied to whether graphs were enabled (= !g_ggml_sycl_disable_graph). The reorder staging path benefits from async alloc/free even without graphs — it avoids host waits while preserving queue ordering.Adds
GGML_SYCL_USE_ASYNC_MEM_OP(default 1) read at init, logged alongside the other SYCL env vars. The SYCL extension availability check is unchanged.Additional information
Split from #22066 per reviewer request for independent review.
Requirements