Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use amgcl with gpu #261

Open
gujintian1 opened this issue Aug 12, 2023 · 3 comments
Open

how to use amgcl with gpu #261

gujintian1 opened this issue Aug 12, 2023 · 3 comments

Comments

@gujintian1
Copy link

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.

@gujintian1
Copy link
Author

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

@ddemidov
Copy link
Owner

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

@gujintian1
Copy link
Author

thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants