From 23a46ce972cd1fa08e967f17ee9e024e87dcaadb Mon Sep 17 00:00:00 2001 From: Raul Torres <138264735+rauletorresc@users.noreply.github.com> Date: Wed, 12 Nov 2025 06:37:52 +0000 Subject: [PATCH] CANN: GGML_CANN_ACL_GRAPH works only USE_ACL_GRAPH enabled (#16861) The documentation should state that `GGML_CANN_ACL_GRAPH` is only effective if `USE_ACL_GRAPH` was enabled at compilation time. --- docs/backend/CANN.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/backend/CANN.md b/docs/backend/CANN.md index e45fc7dd28..37dcfaef9a 100755 --- a/docs/backend/CANN.md +++ b/docs/backend/CANN.md @@ -313,7 +313,12 @@ Converting the matmul weight format from ND to NZ to improve performance. Enable ### GGML_CANN_ACL_GRAPH -Operators are executed using ACL graph execution, rather than in op-by-op (eager) mode. Enabled by default. +Operators are executed using ACL graph execution, rather than in op-by-op (eager) mode. Enabled by default. This option is only effective if `USE_ACL_GRAPH` was enabled at compilation time. To enable it, recompile using: + +```sh +cmake -B build -DGGML_CANN=on -DCMAKE_BUILD_TYPE=release -DUSE_ACL_GRAPH=ON +cmake --build build --config release +``` ### GGML_CANN_GRAPH_CACHE_CAPACITY