Skip to content

[gpu] Cleanup: Use gpu.subgroup_reduce rather than building shuffles manually #18516

Open

Description

@andfau-amd

The upstream MLIR gpu.subgroup_reduce operation is quite powerful, especially following the work in #18142. There are still places in IREE that manually build a series of shuffles that could be replaced with gpu.subgroup_reduce. One example is emitGPUReduction (WIP patch to clean it up: main...andfau-amd:18142-use-subgroup_reduce-for-emitGPUGroupReduction).

Activity

  1. added
    good first issue 🌱
    codegen
    on Sep 12, 2024
  2. dan-garvey commented on Oct 24, 2024

    @dan-garvey
    Contributor

    is this solved by andfau-amd@4b984f1

  3. andfau-amd commented on Oct 25, 2024

    @andfau-amd
    ContributorAuthor

    @dan-garvey I think the point of this ticket was to do the same kind of improvement in more places than was done in that commit.

  4. danielhumanmod commented on Jan 6, 2026

    @danielhumanmod

    Hey @dan-garvey @andfau-amd, I am new to IREE community, and love to work on this task if it is ok

  5. added 2 commits that reference this issue on Oct 11, 2026
    ac8748a
    29c43a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    codegengood first issue 🌱

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions