]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
CANN: Refactor `evaluate_and_capture_cann_graph` (#17333)
authorRaul Torres <redacted>
Fri, 21 Nov 2025 08:23:29 +0000 (08:23 +0000)
committerGitHub <redacted>
Fri, 21 Nov 2025 08:23:29 +0000 (16:23 +0800)
commit2370665e560fb6e340c4a219464e0967e30e28c4
tree8f7621ff8adea653aa937d612f9cfdeff6d6df97
parent21d31e0810d398f75ddd7d7c4cec9907a5576f26
CANN: Refactor `evaluate_and_capture_cann_graph` (#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
ggml/src/ggml-cann/ggml-cann.cpp