AnswerDotAI / gpu.cpp

A lightweight library for portable low-level GPU computation using WebGPU.
https://gpucpp.answer.ai
Apache License 2.0
3.62k stars 171 forks source link

Python bindings #21

Open jarmitage opened 1 month ago

jarmitage commented 1 month ago

Python bindings would enable gpucpp to be used similar to Taichi, Warp and Mojo. I would personally love to try gpucpp with my creative AI project Tölvera.

pybind is one choice for testing this out. SignalFlow is an example of a C++ project using pybind to create a Python syntax.

A first proof of concept could take the hello world example and demonstrate a Python equivalent version.

Femicplusplus commented 1 month ago

great

austinvhuang commented 1 month ago

I was originally unsure how much interest there was in this since python has plenty of options for API interfaces to the GPU, but I'm learning there's still contexts where it could make sense.

If you're interested in this or have a specific use case in mind, let us know.

jarmitage commented 1 month ago

Which APIs were you thinking of?

For myself, the appeal is more about long term sustainability, portability, vendor agnosticism, as much as it is about APIs.

austinvhuang commented 4 weeks ago

@jarmitage moving forward with some python integrations - will ping in the discord chat.