]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
CANN: Refactor `evaluate_and_capture_cann_graph` (llama/17333)
authorRaul Torres <redacted>
Fri, 21 Nov 2025 08:23:29 +0000 (08:23 +0000)
committerGeorgi Gerganov <redacted>
Thu, 11 Dec 2025 13:32:42 +0000 (15:32 +0200)
commitf16ed478b2625b7da637743f0b5006c5282ec64f
treea0b4a0b5459ed71d3bc5f5bfe439eff81f721628
parenta82283fbfc88476f4a167ac87af66f8f4645bb91
CANN: Refactor `evaluate_and_capture_cann_graph` (llama/17333)

* CANN: Refactor `evaluate_and_capture_cann_graph`

**Description of the problem**

* `matched_graph` is obtained even if graph mode is disabled.
* End of graph capture and graph replay are unnecessarily placed in different `if` blocks.

**Proposed solution**

* Obtain `matched_graph` only if graph mode is enabled.
* Place end of graph capture and graph reply inside the same `if` block.
* Unify graph related comments.

* Remove trailing whitespace
src/ggml-cann/ggml-cann.cpp