ddemidov/amgcl

how to use amgcl with gpu

gujintian1 opened this issue · 3 comments

Hello, I want to use anmgcl and cuda to accelerate the solution of sparse linear equations, but the document of amgcl does not give an example of the solution on gpu. I would like you to give an example of how to use gpu to accelerate the solution of the equation. For example, matrix an and vectors b and x are stored on the device, and these data can be accessed in the cuda kernel function. How should I implement this? thank you very much.

image
that's what I do,there is many errors.

Please have a look at this tutorial, it has the example of using CUDA backend with amgcl: https://amgcl.readthedocs.io/en/latest/tutorial/poisson3Db.html

thank you very much!