Skip to content
Discussion options

You must be logged in to vote

Hi @trsxvz ,
Thanks for reaching out to us.
@pratikvn corrects me if I am wrong.
I think it is possible to call batch solver from device but you need to having the batch corresponding header into your searching path.

you can check the kernel we have for batch solver in https://github.com/ginkgo-project/ginkgo/blob/develop/common/cuda_hip/solver/batch_cg_kernels.hpp where apply_kernel is the actual kernel we call for batch CG solver.
However, you need to arrange your data to fit the function style.

https://github.com/ginkgo-project/ginkgo/blob/develop/core/solver/batch_dispatch.hpp gives the ways how we map the host type to the type used in kernel, so you do not need to prepare the class f…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by trsxvz
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