Can I solve Ax=b1,b2,b3 repeatedly on GPU? #1009
-
I need to solve a series of Ax=bi,i=1.....N with the matrix A unchanged. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, what you are describing is possible directly! All data that is allocated on the GPU can be accessed via the corresponding data pointers 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 |
Beta Was this translation helpful? Give feedback.
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 onb_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
?