-
Notifications
You must be signed in to change notification settings - Fork 658
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
[GPU] Take element type bitwidth into account with vector size. #19987
Conversation
97c9fcf
to
b38a7bd
Compare
Could you add a test for this https://gist.github.com/MaheshRavishankar/2127ecdbc742ef11b98b55e522c6dce8 |
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/ConfigUtils.cpp
Outdated
Show resolved
Hide resolved
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.
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
56e6f82
to
10ce5c6
Compare
Co-authored-by: MaheshRavishankar <[email protected]> Signed-off-by: MaheshRavishankar <[email protected]> Signed-off-by: Nirvedh <[email protected]>
Signed-off-by: Nirvedh <[email protected]>
10ce5c6
to
1f23d9f
Compare
Signed-off-by: Nirvedh <[email protected]>
1f23d9f
to
6485474
Compare
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.
Thanks!
Signed-off-by: Nirvedh <[email protected]>
331092b
to
c26d3da
Compare
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]