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

AttributeError: module 'mirage' has no attribute 'generate_triton_program' #104

Open
2niuhe opened this issue Oct 11, 2024 · 2 comments
Open

Comments

@2niuhe
Copy link

2niuhe commented Oct 11, 2024

It seems that generate_triton_program is not supported in the current version.

In [7]: mi.generate_triton_program
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
AttributeError                            Traceback (most recent call last)
<ipython-input-7-9ef5e8a2b90e> in <cell line: 1>()
----> 1 mi.generate_triton_program

AttributeError: module 'mirage' has no attribute 'generate_triton_program'

@jiazhihao
Copy link
Member

The transpiler currently supports CUDA code gen. The Mirage team is discussing a long term plan for Triton code gen. Is there any reason you may prefer Triton code gen to CUDA code gen?

@2niuhe
Copy link
Author

2niuhe commented Oct 16, 2024

I prefer Triton code generation for several reasons. Triton provides a higher-level abstraction that makes it easier to support compilers from various hardware vendors, not just Nvidia. This allows for greater compatibility and enables the use of different manufacturers' Triton compiler ecosystems with minimal modifications.

Additionally, Triton code can be easily integrated with PyTorch, making it more accessible for those who may not be proficient in C++. This flexibility and ease of use are significant advantages for my projects.

Thank you for considering this in your discussions!

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

No branches or pull requests

2 participants