How can I use thrust in Python #1683
Unanswered
BolunDai0216
asked this question in
Thrust
Replies: 1 comment 5 replies
-
Hey @BolunDai0216! Thanks for your interest in CCCL and Thrust! We work with a lot of Python folks, so we understand where you are coming from. I think the main problem you'll run into with just trying to use pybind with Thrust is that Thrust is a C++ template library. So you don't know the types ahead of time you'll be working on, and you'd need some kind of runtime compilation approach. Have you looked into Could you share more about what kinds of things you're trying to do? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was using thrust to create a library in C++, however, I also want to pybind the the C++ library and use it in Python. I was wondering if anyone has an example of how to do this? It seems like the process is a bit different compared to pybinding CPU-only libraries.
Also, is pybinding the library a good way to use it in Python or if there are better ways?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions