Hi,
I am using magma_dgeqrf2_mgpu function to do QR factorization on multiple gpus. I did not get good enhancement in perofrmance when used 2 gpus rather than 1 gpu for matrices less than 5000*5000. I want to know why this happens and if there is a better function to do QR factorization on multiple gpus for small dense matrices.
Thanks
QR factorization using magma
Re: QR factorization using magma
This is not surprising. There are overheads in a multi-GPU implementation, such as copying pieces of the matrix twice to two GPUs. Only when the matrix is sufficiently large does the computational savings overcome the added overheads. It also depends a lot on the specific CPU, GPU, and implementation of LAPACK and BLAS that you are using. You can try tuning the block size (NB) in control/get_nb.cpp.
-mark
-mark