-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[AMDGPU] update LDS block size for gfx1250 #167614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3546,7 +3546,7 @@ bool isDPALU_DPP(const MCInstrDesc &OpDesc, const MCInstrInfo &MII, | |
| } | ||
|
|
||
| unsigned getLdsDwGranularity(const MCSubtargetInfo &ST) { | ||
| return ST.hasFeature(AMDGPU::FeatureAddressableLocalMemorySize327680) ? 256 | ||
| return ST.hasFeature(AMDGPU::FeatureAddressableLocalMemorySize327680) ? 512 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That becomes more and more strange, doc lists other sizes, but here we have only 2.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
But this needs additional investigation and LIT tests, and should fall into separate PRs, I think.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps. But I'd still expect hsa-gfx1250-v4.s to show some changes.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Do you mean we need to add additional tests to expose the change, or something is missed updating when we change the LDS block size in this PR? Thanks; ( I will change the maximum lds size in the test though)
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably some other place is not changed. Try changing max size in the test, I'd assume hex dump will change.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
maximum lds size updated, and the hex dump changes accordingly. I am going to double check what we possibly missed. Thanks. |
||
| : 128; | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,10 +31,10 @@ | |
| ; GFX1200-MESA: .long 45100 | ||
| ; GFX1200-MESA-NEXT: .long 1024 | ||
|
|
||
| ; GFX1250-PAL: '0x2c0b (SPI_SHADER_PGM_RSRC2_PS)': 0x200 | ||
| ; GFX1250-PAL: '0x2c0b (SPI_SHADER_PGM_RSRC2_PS)': 0x100 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure how this test ends up showing the allocation granularity |
||
|
|
||
| ; GFX1250-MESA: .long 45100 | ||
| ; GFX1250-MESA-NEXT: .long 512 | ||
| ; GFX1250-MESA-NEXT: .long 256 | ||
|
|
||
| @lds = internal addrspace(3) global [4096 x i8] poison | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this should be modeled more directly rather than inferring the allocation size by the target that supports this allocation size
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean something directly like?:
if (gfx1250)
LDSAlignShift = 11;
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arsenm : should we get the lds block size from the target directly?