[KernelGen][MThreads] Add reflection_pad3d_backward Moore Threads specialized operator - #122
Merged
Dongxu-H merged 2 commits intoJul 28, 2026
Conversation
Collaborator
|
/test | reflection_pad3d_backward:mthreads |
❌ On-demand test failedOperator: The test failed to complete. Check the workflow run for details. |
Collaborator
|
/test | reflection_pad3d_backward_moore_threads_specialized:mthreads |
❌ On-demand test failedOperator: The test failed to complete. Check the workflow run for details. |
Collaborator
|
/test | reflection_pad3d_backward:mthreads |
|
…cialized operator
…ckend-specific convention
Yukun-Cui
force-pushed
the
pr/mthreads-reflection_pad3d_backward
branch
from
July 27, 2026 09:49
84c1a96 to
02e6075
Compare
Collaborator
|
LGTM |
1 similar comment
Collaborator
|
LGTM |
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.
[KernelGen][MThreads] Add reflection_pad3d_backward Moore Threads specialized operator
Summary
Add a Moore Threads (MUSA) specialized Triton kernel for
reflection_pad3d_backward, overriding the genericimplementation via
runtime.replace_customized_ops(). Implements the reflection pad3d backward operation.Testing
tests/test_reflection_pad3d_backward.py(-m reflection_pad3d_backward)GEMS_MTHREADS REFLECTION_PAD3D_BACKWARDdebug log(fp64/int64 are not supported on Moore Threads hardware)
Performance
Compared against the generic FlagGems implementation on Moore Threads (MUSA).
reflection_pad3d_backward
Files Changed
src/flag_gems/runtime/backend/_mthreads/ops/reflection_pad3d_backward.py: Moore Threads Triton kernel + fallbacksrc/flag_gems/runtime/backend/_mthreads/ops/__init__.py: Register import and__all__