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

Python bindings #21

Open
jarmitage opened this issue Jul 26, 2024 · 6 comments
Open

Python bindings #21

jarmitage opened this issue Jul 26, 2024 · 6 comments

Comments

@jarmitage
Copy link

jarmitage commented Jul 26, 2024

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
Copy link

great

@austinvhuang
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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

@OlekRaymond
Copy link
Contributor

If anyone needs this before a the pull request is put in, I would recommend using cppyy to use the existing C++.

For the bindings themselves pybind has been good to me in the past.

@asmith26
Copy link

In case helpful, I have come across https://github.com/pygfx/wgpu-py

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

No branches or pull requests

5 participants