Search code examples
c++cudasuitesparse

Is it possible to use CHOLMOD with matrices already in device memory?


I would like to use CHOLMOD's GPU acceleration, and have found several simple examples on how to use the library for Cholesky decomposition. However all of the examples provide the matrices to CHOLMOD in host memory, and allow it to copy them to the device. The project I'm working on already has these matrices resident in device memory as they have been built in parallel, and more processing will be performed on the GPU after Cholesky decomposition is performed.

My question is: Is it possible to interface CHOLMOD directly with device memory? To avoid copying to host memory, simply to allow CHOLMOD to copy it back to the device?

Apologies if this is not the correct place to ask this question, If someone can point me to a users forum that would be great too.


Solution

  • No, as Cholmod only does part of the factorization on the GPU. A host copy is required for matrix reordering and other parts of the factorization.