Skip to content

【KernelGen】Add cudnn_convolution operator - #1729

Merged
w1120029931-bit merged 13 commits into
flagos-ai:masterfrom
Schopenhauer-loves-Hegel:auto-gen/cudnn_convolution
May 14, 2026
Merged

【KernelGen】Add cudnn_convolution operator#1729
w1120029931-bit merged 13 commits into
flagos-ai:masterfrom
Schopenhauer-loves-Hegel:auto-gen/cudnn_convolution

Conversation

@Schopenhauer-loves-Hegel

Copy link
Copy Markdown
Collaborator

PR Category

Operator

Type of Change

New Feature

Description

Add cudnn_convolution operator implementation with Triton kernel.

  • Implementation mode: N/A
  • Accuracy test: 16/16 passed

Issue

N/A

Progress

  • Change is properly reviewed (1 reviewer required, 2 recommended).
  • Change is responded to an issue.
  • Change is fully covered by a UT.

Performance

Benchmark data not available.


Generated by auto_gen tool with Claude Code

@Schopenhauer-loves-Hegel

Copy link
Copy Markdown
Collaborator Author

Closing in favor of grouped PRs to reduce review overhead.

@Schopenhauer-loves-Hegel Schopenhauer-loves-Hegel changed the title Add cudnn_convolution operator 【KernelGen】Add cudnn_convolution operator Mar 23, 2026
@factnn
factnn force-pushed the auto-gen/cudnn_convolution branch from c399d5d to a852dc8 Compare April 15, 2026 20:13
@CLAassistant

CLAassistant commented Apr 15, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@factnn
factnn force-pushed the auto-gen/cudnn_convolution branch from a852dc8 to e8c2058 Compare April 17, 2026 13:22
@factnn
factnn force-pushed the auto-gen/cudnn_convolution branch from 6d3e9af to c1b4c93 Compare April 21, 2026 10:26
@factnn
factnn force-pushed the auto-gen/cudnn_convolution branch from c1b4c93 to 1dc60b7 Compare April 23, 2026 03:41
tengqm
tengqm previously approved these changes Apr 23, 2026
Comment thread tests/test_cudnn_convolution.py Outdated
Comment thread tests/test_cudnn_convolution.py Outdated
Comment thread tests/test_cudnn_convolution.py Outdated
Comment thread benchmark/test_cudnn_convolution_perf.py Outdated
@factnn
factnn force-pushed the auto-gen/cudnn_convolution branch from 6693478 to 6c4621a Compare May 9, 2026 04:35
Comment thread conf/operators.yaml Outdated
@factnn
factnn force-pushed the auto-gen/cudnn_convolution branch from a88a08e to 25e9596 Compare May 11, 2026 14:49

@w1120029931-bit w1120029931-bit left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please change file test_cudnn_convolution_perf.py to file test_cudnn_convolution.py

factnn and others added 7 commits May 12, 2026 21:57
Includes operators.yaml entry in alphabetical order.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
Signed-off-by: Zang Peiyu <166481866+factnn@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
torch.cudnn_convolution only supports CUDA backend, cannot run on CPU.
Use the same GPU tensor for both reference and result.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
torch.cudnn_convolution only runs on CUDA, so ref stays on GPU.
gems_assert_close requires ref to be on CPU when TO_CPU is enabled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
torch.cudnn_convolution is CUDA-only, so both tensors stay on GPU.
gems_assert_close requires both on same device; move both to CPU.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@factnn
factnn force-pushed the auto-gen/cudnn_convolution branch from f8bc5f1 to 8924dc2 Compare May 12, 2026 13:58
@w1120029931-bit
w1120029931-bit merged commit f5e5119 into flagos-ai:master May 14, 2026
17 of 18 checks passed
tengqm added a commit that referenced this pull request May 17, 2026
* Add cudnn_convolution operator implementation, tests and benchmark

Includes operators.yaml entry in alphabetical order.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Apply suggestions from code review

Co-authored-by: Qiming Teng <tengqm@outlook.com>
Signed-off-by: Zang Peiyu <166481866+factnn@users.noreply.github.com>

* fix: apply black formatting to test_cudnn_convolution.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove to_reference for cudnn_convolution tests (CUDA-only op)

torch.cudnn_convolution only supports CUDA backend, cannot run on CPU.
Use the same GPU tensor for both reference and result.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: rename benchmark file to remove _perf suffix

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: move ref tensor to CPU before gems_assert_close

torch.cudnn_convolution only runs on CUDA, so ref stays on GPU.
gems_assert_close requires ref to be on CPU when TO_CPU is enabled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: move both res and ref to CPU before comparison

torch.cudnn_convolution is CUDA-only, so both tensors stay on GPU.
gems_assert_close requires both on same device; move both to CPU.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: move cudnn_convolution to correct alphabetical position in operators.yaml

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Signed-off-by: Zang Peiyu <166481866+factnn@users.noreply.github.com>
Co-authored-by: factnn <1050552884@qq.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Zang Peiyu <166481866+factnn@users.noreply.github.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants