Skip to content

Conversation

@rauletorresc
Copy link
Contributor

Description of the problem

cann_graph_update_required is redundantly defined and initialized as false inside two mutually exclusive macro branches.

Proposed solution

Define it right before the macro so that it could serve both branches.

**Description of the problem**

`cann_graph_update_required` is redundantly defined and
initialized as `false` inside two mutually exclusive macro branches.

**Proposed solution**

Define it right before the macro so that it could serve both
branches.
@github-actions github-actions bot added ggml changes relating to the ggml tensor library for machine learning Ascend NPU issues specific to Ascend NPUs labels Nov 21, 2025
Copy link
Collaborator

@hipudding hipudding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution; this will reduce code duplication.

@hipudding hipudding merged commit 01ad35e into ggml-org:master Nov 24, 2025
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ascend NPU issues specific to Ascend NPUs ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants