Skip to content

fix(cudnn): remove duplicate ConvBwdData match arm in backend graph builder#372

Open
CharryWu wants to merge 1 commit intoRust-GPU:mainfrom
CharryWu:fix/cudnn-backend-graph-duplicate-arm
Open

fix(cudnn): remove duplicate ConvBwdData match arm in backend graph builder#372
CharryWu wants to merge 1 commit intoRust-GPU:mainfrom
CharryWu:fix/cudnn-backend-graph-duplicate-arm

Conversation

@CharryWu
Copy link
Copy Markdown
Contributor

Summary

Removes a duplicate unreachable match arm in the cuDNN backend graph builder.

Problem

In GraphBuilder::build(), the operations iterator map had two identical arms for Operation::ConvBwdData. The second arm was unreachable dead code and would generate a compiler warning under strict linting.

Change

Remove the duplicate arm. All seven operation variants (ConvBwdData, ConvBwdFilter, ConvFwd, MatMul, Pointwise, Reduction) are now each matched exactly once.

Testing

  • cudnn crate compiles cleanly (Compiling cudnn v0.1.0 passes)
  • One-line change, no logic affected

…uilder

The operations iterator map in GraphBuilder::build() had two identical
Operation::ConvBwdData arms. The second arm was unreachable dead code.
Removed the duplicate; all seven operation variants are now matched once.

Made-with: Cursor
@CharryWu CharryWu marked this pull request as ready for review April 1, 2026 11:53
@CharryWu CharryWu requested a review from frjnn as a code owner April 1, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants