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

Implement MoltenVK (enables Vulkan support for Mac OS/iOS) #14819

Open
Aeroxander opened this issue Jun 16, 2019 · 4 comments
Open

Implement MoltenVK (enables Vulkan support for Mac OS/iOS) #14819

Aeroxander opened this issue Jun 16, 2019 · 4 comments
Labels
effort: ∞ Do not start this alone. You can discuss / improve existed proposals. feature platform: ios/osx priority: low

Comments

@Aeroxander
Copy link

Detailed description

As Apple already deprecated OpenCL, the only way to use GPU acceleration in the future is either through the Intel OpenVINO (what only supports Intel GPU's) or through Vulkan with help of MultenVK.

MultenVK can automatically and transparently convert SPIR-V shaders to MSL at runtime with the help of the Runtime Shader Conversion.

The installation and usage is quite straight forward

OpenCV DNN will be the only framework next to Apple's own CoreML framework that can utilize Metal GPU acceleration, while OpenCV will also be compatible with other platforms!

As Vulkan support is still only experimental, I will try to implement MoltenVK and see if things work, if it does it will incentivize people to contribute to Vulkan support as it will also replace OpenCL on Mac.

There are only a few limitations with MoltenVK so it should be able to work.

@ludwig980
Copy link

Hi Aeroxander,

I'm interested in your progress with MoltenVK. Did you manage to get it working? I'm no expert in openCV development, but I'm willing to help if possible/needed.

Cheers

@Aeroxander
Copy link
Author

Hey Ludwig!

Right now I'm trying out the TVM compiler to support Metal, nGraph/PlaidML should also support Metal, I don't have the time right now to add this feature to OpenCV right now.

@bhack
Copy link

bhack commented Mar 18, 2020

Probably with Ngraph Backend + Plaidml when the MLIR rewriting is ready plaidml/plaidml#104

@avilleret
Copy link

Hi @Aeroxander,

any news on that ? is there any plan to support GPU acceleration on Apple's devices ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: ∞ Do not start this alone. You can discuss / improve existed proposals. feature platform: ios/osx priority: low
Projects
None yet
Development

No branches or pull requests

5 participants