Skip to content

[rocjitsu] Fix gfx1250 flat private scratch decoding#7781

Merged
kuhar merged 1 commit into
developfrom
users/kuhar/gfx1250-flat-scratch-repro
Jun 25, 2026
Merged

[rocjitsu] Fix gfx1250 flat private scratch decoding#7781
kuhar merged 1 commit into
developfrom
users/kuhar/gfx1250-flat-scratch-repro

Conversation

@kuhar

@kuhar kuhar commented Jun 24, 2026

Copy link
Copy Markdown
Member

Motivation

Fix gfx1250 flat private scratch address decoding.

Technical Details

LLVM lowers private-to-flat scratch addresses using gfx1250 lane bits in the flat scratch address encoding. We were treating those addresses as ordinary global addresses, so nonzero lanes read from the wrong backing location and the HIP repro returned incorrect values.

Add gfx1250 flat private address translation that strips the encoded lane bits and maps the private offset into RocJITsu’s per-lane scratch backing layout, with a regression test covering the lane-bit decoding path.

JIRA ID

N/A

Test Plan

Unit tests + repro in https://gist.github.com/lua1235/62fa1506c584b454e3135406eea75c42 + fpsan suite.
No generator changes.

Test Result

All good.

Submission Checklist

@kuhar kuhar requested review from a team and atgutier as code owners June 24, 2026 21:13

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kuhar kuhar force-pushed the users/kuhar/gfx1250-flat-scratch-repro branch from 0608edb to 6537c76 Compare June 24, 2026 21:14

@atgutier atgutier 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.

LGMT, but some comments that may need to be addressed.

@kuhar kuhar force-pushed the users/kuhar/gfx1250-flat-scratch-repro branch from 6537c76 to 3abd3cb Compare June 25, 2026 00:49
@kuhar kuhar merged commit 97e0a30 into develop Jun 25, 2026
16 checks passed
@kuhar kuhar deleted the users/kuhar/gfx1250-flat-scratch-repro branch June 25, 2026 02:00
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.

3 participants