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] Implementation of Taichi Runtime C-API #5168

Merged
merged 9 commits into from
Jun 15, 2022

Conversation

PENGUINLIONG
Copy link
Member

This PR implements the C-API which glues user code to the Taichi Runtime.

To allow imported device allocattion (TiMemory) to be correctly exported for idempotency, size and buffer usage are added to IVkBuffer.

@netlify
Copy link

netlify bot commented Jun 14, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 0cb05da
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/62a9b06c5f1d9400080c9952
😎 Deploy Preview https://deploy-preview-5168--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.

@PENGUINLIONG PENGUINLIONG changed the title Implementation of Taichi Runtime C-API [AOT] Implementation of Taichi Runtime C-API Jun 14, 2022
@PENGUINLIONG PENGUINLIONG marked this pull request as ready for review June 14, 2022 15:09
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.

LGTM!

c_api/src/taichi_core_impl.cpp Show resolved Hide resolved
c_api/src/taichi_vulkan_impl.cpp Show resolved Hide resolved
c_api/src/taichi_vulkan_impl.h Show resolved Hide resolved
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.

Thanks!!

PENGUINLIONG and others added 5 commits June 15, 2022 13:15
C-APIs for Taichi runtime distribution

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Use underscore instead of dash in python script name

Eliminated global variables in generator script

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Implement Core profile of Taichi Runtime API

Fixed compilation

Provide more info in imported external buffers
@PENGUINLIONG PENGUINLIONG merged commit efa2c84 into taichi-dev:master Jun 15, 2022
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.

3 participants