You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clean up the organization of the code in CMake, such that taichi_core.so can be composed from a few smaller libraries.
The near-term goal is to isolate the part that do not need to interact with pybind11 into its own library (call it liba). liba can be linked into both taichi_core.so and the unit test executable (#2195 ). This is mainly to make Taichi code unit-testable. Currently, linking taichi_core.so into the unit tests doesn't work, and it still requires the full python dependency. (I tried linking the python lib as well, but then got GIL issue and felt like it was not worth the efforts digging into it)
Many files have directly or indirectly depended on taichi/program/program.h. We have to cut off such dependencies, otherwise it pulls in too many parts of the system. Particularly, we have to do the followings
Break down taichi/lang_util.h (lang_util.cpp includes taichi/program/program.h)
Do not include the frontend IR or expression.
The text was updated successfully, but these errors were encountered:
Clean up the organization of the code in CMake, such that
taichi_core.so
can be composed from a few smaller libraries.The near-term goal is to isolate the part that do not need to interact with
pybind11
into its own library (call itliba
).liba
can be linked into bothtaichi_core.so
and the unit test executable (#2195 ). This is mainly to make Taichi code unit-testable. Currently, linkingtaichi_core.so
into the unit tests doesn't work, and it still requires the full python dependency. (I tried linking the python lib as well, but then got GIL issue and felt like it was not worth the efforts digging into it)Many files have directly or indirectly depended on
taichi/program/program.h
. We have to cut off such dependencies, otherwise it pulls in too many parts of the system. Particularly, we have to do the followingstaichi/lang_util.h
(lang_util.cpp
includestaichi/program/program.h
)The text was updated successfully, but these errors were encountered: