I red a few years ago that Magma can perform symmetric matrix inversion on multiple GPU
On page 40 of 45 of the following paper
http://on-demand.gputechconf.com/gtc/20 ... rators.pdf
Is this currently implemented in Magma as I could not find it in the samples.
thanks
-Neil
Symmetric A^-1 on multiple GPU magma paper
-
neilcouture
- Posts: 1
- Joined: Wed Nov 23, 2016 11:09 pm
Re: Symmetric A^-1 on multiple GPU magma paper
Those slides reference Cholesky inversion for symmetric/Hermitian positive definite matrices. This is implemented in either magma_zpotri and magma_zpotri_gpu (after factoring with magma_zpotrf or magma_zpotrf_gpu).
MAGMA also has several symmetric indefinite factorizations, in magma_zhetrf, magma_zhetrf_aasen, and magma_zhetrf_nopiv. We don't yet have the corresponding inverses, though. For zhetrf, one could use the zhetri routine in LAPACK.
-mark
MAGMA also has several symmetric indefinite factorizations, in magma_zhetrf, magma_zhetrf_aasen, and magma_zhetrf_nopiv. We don't yet have the corresponding inverses, though. For zhetrf, one could use the zhetri routine in LAPACK.
-mark
Re: Symmetric A^-1 on multiple GPU magma paper
Since your subject line mentioned multiple GPUs, the factorization in magma_zpotrf will use multiple GPUs. Set the $MAGMA_NUM_GPUS environment variable. The subsequent inverse in magma_zpotri uses only one GPU.
-mark
-mark
Re: Symmetric A^-1 on multiple GPU magma paper
Also, while there are some circumstances that require an explicit inverse, generally doing a factorization & solve is both faster and more accurate than computing an explicit inverse and multiplying. That is, solving A*X = B (equivalently, X = A^{-1}*B) by
- factoring A = L*L^T (potrf) and then
- solving (L*L^T) X = B (potrs)
- factoring A = L*L^T (potrf)
- computing inverse A^{-1} = L^{-T} * L^{-1} (potri)
- multiplying X = A^{-1}*B (hemm)
Last edited by mgates3 on Tue Nov 29, 2016 11:46 am, edited 1 time in total.
Reason: correct formula
Reason: correct formula