-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[vulkan] Fix MoltenVK support #4205
Conversation
✔️ Deploy Preview for docsite-preview ready! 🔨 Explore the source changes: 845a505 🔍 Inspect the deploy log: https://app.netlify.com/sites/docsite-preview/deploys/62009307f8d4a40007be47f5 😎 Browse the preview: https://deploy-preview-4205--docsite-preview.netlify.app |
/format |
9ccf07f
to
46e29e6
Compare
/format |
1 similar comment
/format |
b4b9ae7
to
fab0b4f
Compare
/format |
1 similar comment
/format |
This reverts commit c8f0340.
8ae345d
to
1ef290f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works! Thanks!
@@ -209,13 +210,14 @@ jobs: | |||
|
|||
- name: Build | |||
run: | | |||
brew install molten-vk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we brew uninstall molten-vk
after we complete the building process to make sure the test can pass without molten-vk?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, if it does not take a lot of time
Related issue = #3030
Depending PR = https://github.com/taichi-dev/taichi/pull/4202/files (merged)
This fixes the MoltenVK support on mac.
Fixes & improvements include:
dlopen
to load MoltenVK and use Volk (with custom loader) to handle the rest of loading. This avoids the@rpath
thing on mac, and makes Molten actually shippableIn addition to be able to run and ship MoltenVK, this also gurantees the SPIR-V codegen will work when translated to MSL (as that is what MoltenVK do under the hood). This helps our on-going AOT effort.
Vulkan testing is added for M1, and vulkan is added in release for all macOS variants