Skip to content

set-spirv-api-attrs: Walk and find gpu module. #1100

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

Merged
merged 1 commit into from
Aug 1, 2025

Conversation

silee2
Copy link
Contributor

@silee2 silee2 commented Aug 1, 2025

Please review these guidelines to help with the review process:

  • Have you provided a meaningful PR description?
  • Have you added a test, a reproducer, or a reference to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • If this PR is a work in progress, are you filing the PR as a draft?
  • Have you organized your commits logically and ensured each can be built by itself?

Copy link
Contributor

@mshahneo mshahneo left a comment

Choose a reason for hiding this comment

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

Thanks for the explanation, SangIk :).
LGTM.

continue;
auto op = getOperation();
mlir::StringRef clientAPI = m_clientAPI;
op->walk([&](mlir::gpu::GPUModuleOp gpuModule) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi SangIk (@silee2 ),
Thanks a lot for taking care of this. I have question though,
Why would we need to do the walk? Did MLIR change the pass structure somehow?
What I am wondering is, why the old version does not work?

@silee2 silee2 merged commit 26c711e into intel:main Aug 1, 2025
2 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