Page 1 of 1

Matrix low size limit

Posted: Mon Feb 13, 2017 12:52 pm
by paoloviviani
Dear all,
is there a chance that, for matrices smaller than a certain size, MAGMA decides to NOT use the GPU at all and reverts to the CPU lapack implementation (e.g. openblas)?

Thanks in advance,
Paolo

Re: Matrix low size limit

Posted: Tue Feb 21, 2017 6:43 am
by paoloviviani
I'm asking this since I'm comparing Openblas ssyevd against Magma ssyevd and I see that, at least until the matrix size is 128x128, the timing are exactly the same, while for bigger matrices the behavior changes.

Re: Matrix low size limit

Posted: Wed Feb 22, 2017 12:33 am
by mgates3
Yes, small matrices are simply handed to LAPACK. There is not enough work for the GPU to be efficient and overcome the cost of copying the matrix to the GPU.
-mark