KomputeProject / kompute

General purpose GPU compute framework built on Vulkan to support 1000s of cross vendor graphics cards (AMD, Qualcomm, NVIDIA & friends). Blazing fast, mobile-enabled, asynchronous and optimized for advanced GPU data processing usecases. Backed by the Linux Foundation.
http://kompute.cc/
Apache License 2.0
1.88k stars 145 forks source link

C FFI for other language bindings #375

Closed crystalthoughts closed 4 days ago

crystalthoughts commented 2 months ago

Hi, are there any plans to offer a C wrapper so that other languages are more easily used with this framework? Thanks!

axsaucedo commented 4 days ago

We are not planning a C-interface at the moment. The Python interface works as using C++ bindings it's possible to align object oriented design - exposing a purely functional interface would remove quite a lot of the functionality and design so not sure the effort would be worth. Probably using something like SWIG would be better, there was an implementation a while back creating an interface for golang: https://github.com/0x0f0f0f/kompute-go/tree/master. Certainly other language support that is maintained would be highly appreciated tho!