[KernelGen][MThreads] Add permute_copy Moore Threads specialized operator - #117
Merged
Merged
Conversation
Collaborator
|
/test | permute_copy:mthreads |
❌ On-demand test failedOperator: The test failed to complete. Check the workflow run for details. |
Collaborator
|
/test | permute_copy_moore_threads_specialized:mthreads |
❌ On-demand test failedOperator: The test failed to complete. Check the workflow run for details. |
Dongxu-H
reviewed
Jul 25, 2026
Dongxu-H
left a comment
Collaborator
There was a problem hiding this comment.
Logger 命名不符合 MThreads 后端规范。当前使用的是主文件夹写法 logging.getLogger(name),应该改为 MThreads 后端专用写法:logger = logging.getLogger(fflag_gems.runtime.backend._mthreads.ops.{name[-1]})。
Collaborator
|
/test | permute_copy:mthreads |
Contributor
Author
|
2026.07.27已被移出待特化列表 |
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 permute_copy Moore Threads specialized operator
Summary
Add a Moore Threads (MUSA) specialized Triton kernel for
permute_copy, overriding the genericimplementation via
runtime.replace_customized_ops(). Implements the permute copy operation.Testing
tests/test_permute_copy.py(-m permute_copy)GEMS_MTHREADS PERMUTE_COPYdebug log(fp64/int64 are not supported on Moore Threads hardware)
Performance
Compared against the generic FlagGems implementation on Moore Threads (MUSA).
permute_copy
Files Changed
src/flag_gems/runtime/backend/_mthreads/ops/permute_copy.py: Moore Threads Triton kernel + fallbacksrc/flag_gems/runtime/backend/_mthreads/ops/__init__.py: Register import and__all__