1.6.1, CUDA 7.0, GOTO2, SGESV, and Matlab R2014b (on linux)
Posted: Mon Mar 02, 2015 6:14 am
Just to note that I compiled magma 1.6.1 without any issues using the GOTO2 blas and the beta CUDA 7.0.
I managed also to compile my original mex test code to run sgesv on the gpu, with minimal effort.
(needed a magma_init();)
I've mostly been using Matlab's gpu capabilities lately because it is far more simple. But benchmarking
A\B in matlab vs. magma's sgesv shows that magma is about 30% faster for 5000X5000 sized
matrices. That's a factor of 20X speed up compared to a single i7-3820 core, and it seems to me a
significant speedup over earlier versions of magma. I use an NVIDIA Titan GPU.
My inertia is still to use matlab's GPU stuff, but it is nice that the original mex files I wrote some years
ago still work. The one trick was that I had to LD_PRELOAD the GotoBLAS2 library before starting matlab,
otherwise the matlab mkl library steps on the mex program and one gets a matlab crash.
(Looks like BLAS_VERSION may not work any more with matlab?)
One suggestion would be to figure out how to compile magma against matlab's own mkl library, if that were
possible. That way magma would, by default, play more nicely with matlab by using the same library. Perhaps I'll try
to do that sometime.
Thanks for the nice code!
I managed also to compile my original mex test code to run sgesv on the gpu, with minimal effort.
(needed a magma_init();)
I've mostly been using Matlab's gpu capabilities lately because it is far more simple. But benchmarking
A\B in matlab vs. magma's sgesv shows that magma is about 30% faster for 5000X5000 sized
matrices. That's a factor of 20X speed up compared to a single i7-3820 core, and it seems to me a
significant speedup over earlier versions of magma. I use an NVIDIA Titan GPU.
My inertia is still to use matlab's GPU stuff, but it is nice that the original mex files I wrote some years
ago still work. The one trick was that I had to LD_PRELOAD the GotoBLAS2 library before starting matlab,
otherwise the matlab mkl library steps on the mex program and one gets a matlab crash.
(Looks like BLAS_VERSION may not work any more with matlab?)
One suggestion would be to figure out how to compile magma against matlab's own mkl library, if that were
possible. That way magma would, by default, play more nicely with matlab by using the same library. Perhaps I'll try
to do that sometime.
Thanks for the nice code!