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

[AOT] C-APIs for Taichi runtime distribution #5150

Merged
merged 8 commits into from
Jun 14, 2022

Conversation

PENGUINLIONG
Copy link
Member

Because platforms like Android and iOS have their own workflows of library integration, and some users do not have a C++17 toolchain to compile Taichi properly, Taichi need an interface to be correctly linked and/or dynamically loaded by any toolchain, any programming language on any platform. So this PR proposes a set of C-APIs to ease distributed library integration.

This PR introduces the following changes:

  • c_api/taichi.json which is a machine-readable specification of the first release of Taichi Runtime public APIs;
  • misc/generate-c-api.py is a Python script to generate C/C++ headers based on the specification;
  • c_api/include/taichi/*.h are the generated headers.

@netlify
Copy link

netlify bot commented Jun 13, 2022

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit 6236963
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/62a80738f6db2600096fc47a

@PENGUINLIONG PENGUINLIONG changed the title C-APIs for Taichi runtime distribution [AOT] C-APIs for Taichi runtime distribution Jun 13, 2022
@PENGUINLIONG PENGUINLIONG marked this pull request as ready for review June 13, 2022 07:20
Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

LGTM!!

misc/generate-c-api.py Outdated Show resolved Hide resolved
misc/generate-c-api.py Outdated Show resolved Hide resolved
c_api/include/taichi/taichi_core.h Outdated Show resolved Hide resolved
@PENGUINLIONG PENGUINLIONG merged commit 77ec1a0 into taichi-dev:master Jun 14, 2022
@PENGUINLIONG PENGUINLIONG deleted the c-api3 branch June 14, 2022 09:19
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.

2 participants