-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix GPUXToSpirv Pass to iterate for all gpuModules #426
Conversation
mlir::spirv::MemorySpaceToStorageClassMap memorySpaceMap = | ||
mlir::spirv::mapMemorySpaceToVulkanStorageClass; | ||
mlir::spirv::MemorySpaceToStorageClassConverter converter(memorySpaceMap); | ||
for (auto gpuModule : gpuModules) { |
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.
so this means upstream is not supporting iterating over all gpu modules?
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.
upstream does it as well ..here https://mlir.llvm.org/doxygen/GPUToSPIRVPass_8cpp_source.html ..line 68
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.
I noticed that (Upstream iterating over gpu module) as well. Did not add the change to #415 since that would make the PR even bigger.
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.
Yes, I see it now, when I added this pass, upstream did not have this covered. Looks good.
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.
I did this change both in main
and in upstream some time ago, to support attaching different TargetEnv's to different gpu modules https://reviews.llvm.org/D135907
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.
LGTM
Please review these guidelines to help with the review process: