Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Multi GPU

Subject: Multi GPU

From: Hugh

Date: 21 Feb, 2012 13:36:11

Message: 1 of 3

Hi there,

How many GPU's can be used with the Parallel tool box at one time?

It is necessary to use any addditional software if one iwshed to go down the multi-GPU route?

Subject: Multi GPU

From: Edric M Ellis

Date: 21 Feb, 2012 13:54:43

Message: 2 of 3

"Hugh " <h_a_patience@hotmail.com> writes:

> How many GPU's can be used with the Parallel tool box at one time?

Each MATLAB session can use one GPU at a time. You can use multiple GPUs
by, for example, launching a MATLABPOOL. If you have 2 GPUs, you could
do something like this:

matlabpool local 2
spmd
  gpuDevice(labindex);
  g = gpuArray( ... );
  ... operate on g ...
end

> It is necessary to use any addditional software if one iwshed to go
> down the multi-GPU route?

No, Parallel Computing Toolbox has everything you need.

Cheers,

Edric.

Subject: Multi GPU

From: Piero Lanucara

Date: 28 Feb, 2012 12:56:13

Message: 3 of 3

Very interesting....but...a more exciting (and concrete) example?
Thank's
Piero

Edric M Ellis <eellis@mathworks.com> wrote in message <ytwzkccnvfg.fsf@uk-eellis0l.dhcp.mathworks.com>...
> "Hugh " <h_a_patience@hotmail.com> writes:
>
> > How many GPU's can be used with the Parallel tool box at one time?
>
> Each MATLAB session can use one GPU at a time. You can use multiple GPUs
> by, for example, launching a MATLABPOOL. If you have 2 GPUs, you could
> do something like this:
>
> matlabpool local 2
> spmd
> gpuDevice(labindex);
> g = gpuArray( ... );
> ... operate on g ...
> end
>
> > It is necessary to use any addditional software if one iwshed to go
> > down the multi-GPU route?
>
> No, Parallel Computing Toolbox has everything you need.
>
> Cheers,
>
> Edric.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us