Calling MAGMA from MATLAB

Open discussion for MAGMA

Calling MAGMA from MATLAB

Postby stumarcus » Fri Mar 07, 2014 5:35 pm

I'm interested in performing QR and Cholesky matrix factorization on multiple GPUs. I am able to perform these factorizations on a single GPU using the MATLAB 2013b Parallel Computing Toolbox via the qr and chol functions. Are there instructions for invoking the QR and Cholesky MAGMA routines from within MATLAB so that multiple GPUs can be exploited? Why doesn't MATLAB use MAGMA for its GPU matrix factorization library so that multiple GPUs can be exploited?
stumarcus
 
Posts: 2
Joined: Fri Mar 07, 2014 5:28 pm

Re: Calling MAGMA from MATLAB

Postby mgates3 » Mon Mar 10, 2014 1:53 pm

To my knowledge, Matlab does not currently support multi-GPU functions, but that is a question/suggestion for MathWorks.
-mark
mgates3
 
Posts: 427
Joined: Fri Jan 06, 2012 2:13 pm

Re: Calling MAGMA from MATLAB

Postby stumarcus » Sat Mar 15, 2014 12:14 am

How difficult is it to invoke the MAGMA routines from within a MATLAB program? Are there instructions for doing this?
stumarcus
 
Posts: 2
Joined: Fri Mar 07, 2014 5:28 pm

Re: Calling MAGMA from MATLAB

Postby mgates3 » Mon Mar 17, 2014 10:13 am

mgates3
 
Posts: 427
Joined: Fri Jan 06, 2012 2:13 pm

Re: Calling MAGMA from MATLAB

Postby Boxed Cylon » Wed Apr 09, 2014 7:04 am

I wrote a tutorial on matlab+cuda using mex files a few years ago:

http://faculty.washington.edu/dushaw/ep ... l_2_10.pdf

A little dated, but I think it is still valid, generally.

Matlab's parallel processing toolbox has mostly superseded my laborious mex files, however. But it is nice to have the mex file approach working, just in case.

Also, matlab may have its own cuda libraries internally. One issue that has come up is a user's mex file may try to use these libraries first, rather than the expected libraries from cuda. One can test which libraries are used by doing >> !ldd usersmexfile.mex from within matlab. Perhaps matlab has sorted this issue out by now, however. (assuming linux as the OS here)
Boxed Cylon
 
Posts: 27
Joined: Sat Nov 21, 2009 6:03 pm


Return to User discussion

Who is online

Users browsing this forum: Google [Bot] and 5 guests