Skip to content
Discussion options

You must be logged in to vote

Yes, what you are describing is possible directly! All data that is allocated on the GPU can be accessed via the corresponding data pointers vector->get_values(). So depending on the complexity of the operations you want to do on b_i, you can write your own CUDA kernels, build the operations out of thrust algorithms or (probably soon) use our common kernel interface to implement simple pointwise kernels in a device-independent fashion.

Let us know if you want some details on any of the 3 approaches. What kinds of calculations do you need to do to compute the new b_i?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ztdepztdep
Comment options

Answer selected by pratikvn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants