Page 1 of 1

using multiple GPU from matlab

PostPosted: Mon Jun 20, 2011 11:59 am
by mharb
Is it possible to use the link interface with several GPU in parallel from MATLAB? i.e. invert several matrices at the same time, one on each GPU. If so, how can this be done?

Re: using multiple GPU from matlab

PostPosted: Mon Jun 20, 2011 1:21 pm
by kyle
This is not possible with the link interface. You'll have to write some custom code to set the proper GPU device and run the functions.

Re: using multiple GPU from matlab

PostPosted: Thu Jun 30, 2011 10:10 pm
by mharb
Thanks. We are currently doing this using mex files. But are there any plans to extend the link interface to multiple GPU in the future?

Re: using multiple GPU from matlab

PostPosted: Fri Jul 01, 2011 7:56 am
by kyle
Since the link interface is designed to intercept calls to a traditional CPU based LAPACK library, the method you have described is not possible since LAPACK has no notion of binding to a device.

However, it will be possible, in a future release, to use multiple GPUs to solve one large problem.

Re: using multiple GPU from matlab

PostPosted: Fri Jul 01, 2011 8:28 am
by john
That's one of the nice things about the link interface using host memory. In that case, Out-of-Core solvers and multi-gpu solvers are possible, whereas with the Device interface they are not possible (pretty much by definition).