Skip to content

Skip jagged_softmax large-grid tests on ROCm (exceed HIP 2^32 launch limit) - #6022

Open
gchalump wants to merge 1 commit into
pytorch:mainfrom
gchalump:export-D112352791
Open

Skip jagged_softmax large-grid tests on ROCm (exceed HIP 2^32 launch limit)#6022
gchalump wants to merge 1 commit into
pytorch:mainfrom
gchalump:export-D112352791

Conversation

@gchalump

Copy link
Copy Markdown
Contributor

Summary:
test_jagged_softmax_{forward,backward}_large_grid intentionally build an
oversized launch grid (D=20000, B=2047 => grid.x * grid.y * block =
20000 * 2047 * 128 = 5.24B threads) to exercise the large-grid path. On ROCm this
exceeds HIP's hard 2^32 threads-per-launch limit and the launch is rejected
(CUDA silently wraps, so it passes there). This surfaced on gfx942 / ROCm 7.1 in
run 29418021816.

Rather than special-case the kernel launch for this synthetic oversized grid,
skip the two tests on ROCm via skipIfRocm. The large-grid path stays exercised
on CUDA; ROCm coverage of jagged_softmax at normal grid sizes is unaffected.

Differential Revision: D112352791

…limit)

Summary:
test_jagged_softmax_{forward,backward}_large_grid intentionally build an
oversized launch grid (D=20000, B=2047 => grid.x * grid.y * block =
20000 * 2047 * 128 = 5.24B threads) to exercise the large-grid path. On ROCm this
exceeds HIP's hard 2^32 threads-per-launch limit and the launch is rejected
(CUDA silently wraps, so it passes there). This surfaced on gfx942 / ROCm 7.1 in
run 29418021816.

Rather than special-case the kernel launch for this synthetic oversized grid,
skip the two tests on ROCm via skipIfRocm. The large-grid path stays exercised
on CUDA; ROCm coverage of jagged_softmax at normal grid sizes is unaffected.

Differential Revision: D112352791
@meta-codesync

meta-codesync Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@gchalump has exported this pull request. If you are a Meta employee, you can view the originating Diff in D112352791.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant