Skip to content
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

[GPU] Take element type bitwidth into account with vector size. #19987

Merged
merged 4 commits into from
Feb 14, 2025

Conversation

nirvedhmeshram
Copy link
Contributor

@nirvedhmeshram nirvedhmeshram commented Feb 13, 2025

This is for TileAndFuse workgroup and thread distribution logic. Before this PR we only tried to vectorize to size 4 but now we vectorize to a bitWidth of 128. This can however result in no vectorization for small dimensions so the PR also introduces a fallback for smaller shapes to vector size of 4.

Co-authored-by: MaheshRavishankar [email protected]
Signed-off-by: MaheshRavishankar [email protected]
Signed-off-by: Nirvedh [email protected]

@MaheshRavishankar
Copy link
Contributor

Could you add a test for this https://gist.github.com/MaheshRavishankar/2127ecdbc742ef11b98b55e522c6dce8

Copy link
Contributor

@MaheshRavishankar MaheshRavishankar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I meant if you can add a config test. (Note that the config test can be written with just function and dropping all the HAL interface stuff). Sorry I wasn't clear

MaheshRavishankar and others added 2 commits February 13, 2025 21:18
Co-authored-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: Nirvedh <[email protected]>
Copy link
Contributor

@MaheshRavishankar MaheshRavishankar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Signed-off-by: Nirvedh <[email protected]>
@nirvedhmeshram nirvedhmeshram enabled auto-merge (squash) February 14, 2025 18:02
@nirvedhmeshram nirvedhmeshram merged commit cdba184 into iree-org:main Feb 14, 2025
40 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.

2 participants