Skip to content

Commit 9b11e35

Browse files
authored
GGML_CANN_ACL_GRAPH works only if USE_ACL_GRAPH was enabled
The documentation should state that `GGML_CANN_ACL_GRAPH` is only effective if `USE_ACL_GRAPH` was enabled at compilation time.
1 parent dcca0d3 commit 9b11e35

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/backend/CANN.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,12 @@ Converting the matmul weight format from ND to NZ to improve performance. Enable
313313

314314
### GGML_CANN_ACL_GRAPH
315315

316-
Operators are executed using ACL graph execution, rather than in op-by-op (eager) mode. Enabled by default.
316+
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:
317+
318+
```sh
319+
cmake -B build -DGGML_CANN=on -DCMAKE_BUILD_TYPE=release -DUSE_ACL_GRAPH=ON
320+
cmake --build build --config release
321+
```
317322

318323
### GGML_CANN_GRAPH_CACHE_CAPACITY
319324

0 commit comments

Comments
 (0)