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

input GPU data directly into CUDA solver #253

Open
MakotoChiba opened this issue Mar 28, 2023 · 2 comments
Open

input GPU data directly into CUDA solver #253

MakotoChiba opened this issue Mar 28, 2023 · 2 comments

Comments

@MakotoChiba
Copy link

Hi,
How can I use my matrix data(I, J, N, val) on CUDA memory to the AMGCL CUDA solver?
Currently, I copy those data from CUDA memory to main mamory once time and use make_tuple for initialize.
But it is really waist. I want to use GPU data directory for the solver.
Can I make it??

@ddemidov
Copy link
Owner

Unfortunately, this is not possible with amgcl. In the library the setup is done completely on the cpu side and the results are then transferred to gpu memory.

You can try nvidia's amgx, as I believe the setup is done gpu-side there. I have also seen some work done based on amgcl where the setup is done on the gpu-side (https://doi.org/10.1007/978-3-031-11623-0_10), but I am not sure if the work has been open-sourced.

@MakotoChiba
Copy link
Author

hi ddemidov,
Thank you very much for explain and suggest. I will try to check amgx.
But don't you have any plan for it?

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