-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[mesh] Remove link hints from ti.Mesh #4825
Conversation
✅ Deploy Preview for docsite-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
for more information, see https://pre-commit.ci
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.
Hmm, could you make this a separate AST processing pass? The current one is purely for transforming that to C++ AST, which isn't very suitable for blending in Mesh logic
Updated. There is now a separate AST processing pass to detect mesh relation visiting, though only some simple cases of detections are handled. For complicated situations, users need to manually tell compiler which relations are needed. |
for more information, see https://pre-commit.ci
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.
Thanks for separating the AST pass. LGTM from my side!
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!
HI @BillXu2000, could you fix the CI build failure problem? |
for more information, see https://pre-commit.ci
* scratch * auto vv * relations from metadata and patcher * remove comments * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add python pass to detect relation visits * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * todo * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * try fix test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * adjust comments Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Related issue = #3608
All the necessary relation information will be detected in ast transformer.
Relations that has not been stored in fields will be fetched from patcher.
I am not sure whether it is appropriate to store mesh information in compile context and update mesh information in kernel_impl.py.