Skip to content

FlashAttention: use subgroup size 32 on Intel Xe2 and Xe3 - #33808

Merged
Jiajia Qin (qjia7) merged 1 commit into
microsoft:mainfrom
jchen10:fa_simd32
Nov 11, 2026
Merged

Jiajia Qin (qjia7) merged 1 commit into
microsoft:mainfrom
jchen10:fa_simd32

Conversation

@jchen10

Copy link
Copy Markdown
Contributor

An explicit subgroup size lets Tint use a constant lane clamp bound for subgroupShuffle, so IGC keeps direct register addressing.

Copilot AI balanced review requested due to automatic review settings November 2, 2026 07:55
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@jchen10

Copy link
Copy Markdown
Contributor Author

/run bots

@jchen10

Copy link
Copy Markdown
Contributor Author

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.

🟢 Approval recommended

No active review issues remain for the change requesting a subgroup size of 32 on supported Intel adapters.

No open issues 🎉

What changed in this PR

This PR requests a subgroup size of 32 for WebGPU FlashAttention dense prefill on supported Intel adapters, allowing Tint to use a constant shuffle lane bound and helping avoid indirect register addressing.

Changes:

  • Sets subgroup size to 32 when Intel hardware supports subgroup size control and the requested size.
  • Preserves existing behavior when capability or tile-size compatibility checks fail.
File Description
onnxruntime/​contrib_ops/​webgpu/​bert/​flash_attention.cc Adds guarded Intel subgroup-size selection for dense prefill.

Review effort: Balanced

@qjia7

Copy link
Copy Markdown
Contributor

The request was received. Approve workflow runs. Thanks.

@Jiawei-Shao

Copy link
Copy Markdown
Contributor

LGTM!

@jchen10

Copy link
Copy Markdown
Contributor Author

Jiajia Qin (@qjia7) PTAL

@jchen10 Jie Chen (jchen10) changed the title FlashAttention: use subgroup size 32 on Intel FlashAttention: use subgroup size 16 on Intel Nov 4, 2026
@jchen10

Copy link
Copy Markdown
Contributor Author

/run bots

@qjia7

Copy link
Copy Markdown
Contributor

The request was received. Approve workflow runs. Thanks.

An explicit subgroup size lets Tint use a constant lane clamp bound for
subgroupShuffle, so IGC keeps direct register addressing.
@jchen10 Jie Chen (jchen10) changed the title FlashAttention: use subgroup size 16 on Intel FlashAttention: use subgroup size 32 on Intel Xe2 and Xe3 Nov 5, 2026
@jchen10

Copy link
Copy Markdown
Contributor Author

/run bots

@qjia7

Copy link
Copy Markdown
Contributor

The request was received. Approve workflow runs. Thanks.

@qjia7
Jiajia Qin (qjia7) enabled auto-merge (squash) November 6, 2026 07:49
@jchen10

Copy link
Copy Markdown
Contributor Author

/run failed bots

@qjia7

Copy link
Copy Markdown
Contributor

The request was received. Failed workflow jobs were queued for rerun. Thanks.

auto-merge was automatically disabled November 10, 2026 00:46

Pull request was closed

@jchen10

Copy link
Copy Markdown
Contributor Author

/run bots

@qjia7

Copy link
Copy Markdown
Contributor

The request was received. Approve workflow runs. Thanks.

@qjia7
Jiajia Qin (qjia7) merged commit 47716d3 into microsoft:main Nov 11, 2026
201 of 214 checks passed
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.

5 participants