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

[DOC][Tutorial] How to write a pass in python #1308

Closed
ehsanmok opened this issue Jun 21, 2018 · 10 comments
Closed

[DOC][Tutorial] How to write a pass in python #1308

ehsanmok opened this issue Jun 21, 2018 · 10 comments

Comments

@ehsanmok
Copy link
Contributor

ehsanmok commented Jun 21, 2018

@tqchen As part of roadmap v0.4, I'd like to write a tutorial on how to write a pass in python, but I'll need to know more details. Could you point me where to look for and what the goals are more specifically?

@tqchen
Copy link
Member

tqchen commented Jun 21, 2018

@were @ZihengJiang may have more suggestions to provide. The goal is to understand how to do low level IR transformations, and related python function to do so.

Doing so a simple example task, like(mark a serial loop as parallel), or replace a pattern with intrinsic, would be a useful thing

@tqchen
Copy link
Member

tqchen commented Jun 21, 2018

also cc @xqdan @libing4752

@tqchen
Copy link
Member

tqchen commented Jul 5, 2018

@were would you be interested in this?

@were
Copy link
Contributor

were commented Jul 8, 2018

@tqchen What do you mean by a "pass"? I have some experience in using IRTransformer and IRPostOrderVisitor, so I think I can do this?

@tqchen
Copy link
Member

tqchen commented Jul 8, 2018

pass means transformations between IRs, so these are approperiate @were

@were
Copy link
Contributor

were commented Jul 8, 2018

OK. Then essentially, what we want on the tutorial becomes how to gather information via IR and how to transform the IR.

@were
Copy link
Contributor

were commented Aug 28, 2018

Where is a good place to put this tutorial?
If no suggestions, I will put it in tutorial/language.

@were
Copy link
Contributor

were commented Aug 30, 2018

I have written one #1671, but it is still crashing when building docs. Anyone can help?

@were
Copy link
Contributor

were commented Sep 5, 2018

Since #1671 is merged, should we close this issue?

@tqchen tqchen closed this as completed Sep 5, 2018
@tqchen
Copy link
Member

tqchen commented Sep 5, 2018

Thanks to @were , this is closed by #1671

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants