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

[tools/triton-tensor-layout] Allow parsing ttgir files with triton_nvidia_gpu ops #4686

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

bertmaher
Copy link
Collaborator

If you want to dump layouts read from an MLIR file, and that file contains ops like triton_nvidia_gpu.warp_group_dot, this tool needs to know about the triton_nvidia_gpu dialect, or else it will throw an error about not finding the dialect

@@ -180,6 +181,7 @@ int main(int argc, char **argv) {
DialectRegistry registry;
// Register all dialects that can print tensor layout.
registry.insert<triton::gpu::TritonGPUDialect>();
registry.insert<triton::nvidia_gpu::TritonNvidiaGPUDialect>();
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we call registerTritonDialects so that we covert any kind of ops?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That seems totally reasonable, yes!

Copy link
Collaborator

Choose a reason for hiding this comment

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

are planning to update the PR or do you prefer landing it that way and someone can generalize it later?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, planning to update -- will do it this afternoon!

@ThomasRaoux ThomasRaoux merged commit 80947a2 into triton-lang:main Sep 30, 2024
7 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