【KernelGen】Add fmod operator - #1737
Merged
Merged
Conversation
Schopenhauer-loves-Hegel
requested review from
0x45f,
huangyiqun,
kiddyjinjin and
zhangpeiyang1
as code owners
February 27, 2026 06:14
Collaborator
Author
|
Closing in favor of grouped PRs to reduce review overhead. |
Contributor
fmod Benchmark Speedup Resultsfloat16
float32
bfloat16
|
factnn
force-pushed
the
auto-gen/fmod
branch
3 times, most recently
from
April 23, 2026 07:57
d363c4a to
86b8686
Compare
tengqm
reviewed
Apr 23, 2026
tengqm
reviewed
Apr 24, 2026
tengqm
reviewed
Apr 24, 2026
tengqm
reviewed
Apr 24, 2026
tengqm
reviewed
Apr 26, 2026
tengqm
left a comment
Contributor
There was a problem hiding this comment.
Overall lgtm now. Thanks.
Contributor
UT ResultsBranch rebased to upstream/master and tests passed: |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com> Signed-off-by: bin913 <842884726@qq.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com> Signed-off-by: bin913 <842884726@qq.com>
tengqm
reviewed
May 9, 2026
Co-authored-by: Qiming Teng <tengqm@outlook.com> Signed-off-by: Zang Peiyu <166481866+factnn@users.noreply.github.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com> Signed-off-by: bin913 <842884726@qq.com>
bin913
approved these changes
May 9, 2026
tengqm
added a commit
that referenced
this pull request
May 17, 2026
* feat: add fmod operator with tests and benchmark Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Apply suggestion from @tengqm Co-authored-by: Qiming Teng <tengqm@outlook.com> Signed-off-by: bin913 <842884726@qq.com> * Apply suggestions from code review Co-authored-by: Qiming Teng <tengqm@outlook.com> Signed-off-by: bin913 <842884726@qq.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> * Apply suggestions from code review Co-authored-by: Qiming Teng <tengqm@outlook.com> Signed-off-by: bin913 <842884726@qq.com> --------- Signed-off-by: bin913 <842884726@qq.com> Signed-off-by: Zang Peiyu <166481866+factnn@users.noreply.github.com> Co-authored-by: factnn <1050552884@qq.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: bin913 <842884726@qq.com> Co-authored-by: Qiming Teng <tengqm@outlook.com> Co-authored-by: Zang Peiyu <166481866+factnn@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Operator
Type of Change
New Feature
Description
Add
fmodoperator implementation with Triton kernel.pointwise_dynamicIssue
N/A
Progress
Performance
torch.bfloat16
torch.float16
torch.float32
Overall: median speedup = 1.002x, mean speedup = 0.990x (45 data points)
Generated by auto_gen tool with Claude Code