Skip to content

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

Merged
nirvedhmeshram merged 4 commits into
iree-org:mainfrom
nirvedhmeshram:elementwise_tile_size2
Feb 14, 2025
Merged

nirvedhmeshram merged 4 commits into
iree-org:mainfrom
nirvedhmeshram:elementwise_tile_size2

Conversation

@nirvedhmeshram

@nirvedhmeshram nirvedhmeshram commented Feb 13, 2025 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Collaborator

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

@MaheshRavishankar MaheshRavishankar left a comment

Copy link
Copy Markdown
Collaborator

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]>

@MaheshRavishankar MaheshRavishankar left a comment

Copy link
Copy Markdown
Collaborator

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
AWoloszyn pushed a commit that referenced this pull request Dec 1, 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]>

---------

Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: Nirvedh <[email protected]>
Co-authored-by: MaheshRavishankar <[email protected]>
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