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] Import MoltenVK #6090

Merged
merged 2 commits into from
Sep 20, 2022

Conversation

PENGUINLIONG
Copy link
Member

In the current implementation, Vulkan instance created by an external MoltenVK cannot be imported via C-API because Taichi would attempt to load libMoltenVK.dylib by itself and it leads to a crash if the external MoltenVK is linked to the application. This PR introduce a new (optional) interop entry of vkGetInstanceProcAddr so that externally loaded vulkan library can be reused.

This could be an extension to the discussion in #6083 . Statically linking to MoltenVK is potentially saving us from all these hazards.

@netlify
Copy link

netlify bot commented Sep 17, 2022

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit 9b595e6
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/6325be6403e752000938e6be

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!

@PENGUINLIONG PENGUINLIONG merged commit 98d1877 into taichi-dev:master Sep 20, 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.

2 participants