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

[mesh] Remove link hints from ti.Mesh #4825

Merged
merged 16 commits into from
Apr 22, 2022
Merged

Conversation

BillXu2000
Copy link
Collaborator

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.

@BillXu2000 BillXu2000 requested a review from g1n0st April 20, 2022 06:33
@netlify
Copy link

netlify bot commented Apr 20, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit bd4da6a
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/62620ea95d2ff700095f6741
😎 Deploy Preview https://deploy-preview-4825--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@BillXu2000 BillXu2000 requested a review from k-ye April 20, 2022 06:33
Copy link
Member

@k-ye k-ye left a 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

@BillXu2000
Copy link
Collaborator Author

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.

@BillXu2000 BillXu2000 requested a review from k-ye April 20, 2022 10:51
Copy link
Member

@k-ye k-ye 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 separating the AST pass. LGTM from my side!

Copy link
Contributor

@g1n0st g1n0st left a comment

Choose a reason for hiding this comment

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

LGTM!

@FantasyVR
Copy link
Collaborator

HI @BillXu2000, could you fix the CI build failure problem?

@BillXu2000 BillXu2000 merged commit abf87a2 into taichi-dev:master Apr 22, 2022
k-ye pushed a commit to k-ye/taichi that referenced this pull request May 5, 2022
* 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>
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.

4 participants