Skip to content

[Feat] Export shuffle xor/up/down/idx ops#871

Merged
coderfeli merged 2 commits into
mainfrom
pr/enh-shuffle-ops
Jul 21, 2026
Merged

[Feat] Export shuffle xor/up/down/idx ops#871
coderfeli merged 2 commits into
mainfrom
pr/enh-shuffle-ops

Conversation

@sjfeng1999

Copy link
Copy Markdown
Collaborator

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds module-level GPU warp/subgroup shuffle helpers to the FlyDSL expression layer so kernels can perform lane-crossing data movement (xor/up/down/idx) via the MLIR gpu.shuffle op.

Changes:

  • Introduces a shuffle(value, offset, width, mode=...) wrapper around gpu.ShuffleOp, with result re-wrapping via dsl_math_wrap_result.
  • Exports convenience entry points shuffle_xor, shuffle_up, shuffle_down, shuffle_idx via __all__.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread python/flydsl/expr/gpu.py Outdated
Comment thread python/flydsl/expr/gpu.py
@coderfeli
coderfeli merged commit 8e70ae7 into main Jul 21, 2026
20 of 21 checks passed
@coderfeli
coderfeli deleted the pr/enh-shuffle-ops branch July 21, 2026 08:29
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.

3 participants