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

[refactor] Create a library taichi_isolated_core that is free from pybind11 #2218

Merged
merged 7 commits into from
Mar 18, 2021

Conversation

k-ye
Copy link
Member

@k-ye k-ye commented Mar 17, 2021

Related issue = #2196

This PR makes various clean up to make taichi_isolated_core include every source file except for those under taichi/python/. With this in place, it's possible to unit test a major part of Taichi. @BillXu2000 should also be able to link with taichi_isolated_core to use both the IR and the runtime.

Note that this requires cmake 3.12 because we need to link with the OBJECT library (see https://stackoverflow.com/a/51436025/12003165). Since "cmake 3.12" was released on July 2018, this should be OK for all the developers/

[Click here for the format server]


@k-ye k-ye requested a review from taichi-gardener March 17, 2021 11:49
@k-ye k-ye force-pushed the all-except-pybind branch from c7755c0 to f5cb364 Compare March 17, 2021 11:50
@archibate
Copy link
Collaborator

archibate commented Mar 17, 2021 via email

@k-ye
Copy link
Member Author

k-ye commented Mar 17, 2021

Does this means that Taichi is going to expose CHI IR to serve other frontend languages than Python?

yes

@k-ye k-ye requested review from taichi-gardener and removed request for taichi-gardener March 17, 2021 13:33
@k-ye k-ye removed the request for review from taichi-gardener March 18, 2021 02:11
Copy link
Contributor

@xumingkuan xumingkuan left a comment

Choose a reason for hiding this comment

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

LGTM!

@k-ye k-ye merged commit 7be2471 into taichi-dev:master Mar 18, 2021
@k-ye k-ye deleted the all-except-pybind branch March 18, 2021 10:22
@xumingkuan xumingkuan mentioned this pull request Apr 13, 2021
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