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:
Parallel solution of linear algebraic system of equations

Subject: Parallel solution of linear algebraic system of equations

From: Gilles

Date: 14 Mar, 2012 18:49:12

Message: 1 of 5

Hello everybody,

Could you please enlighten me, is it possible to have Matlab solve a system of linear algebraic equations in parallel fashion? I understand that one can use threads, but there doesn't seem any mechanism for instructing Matlab to use them in the \ operator!?

Thanks bunch,

Gilles

Subject: Parallel solution of linear algebraic system of equations

From: Steven_Lord

Date: 15 Mar, 2012 13:55:15

Message: 2 of 5



"Gilles " <louvre65662@mypacks.net> wrote in message
news:jjqp78$10h$1@newscl01ah.mathworks.com...
> Hello everybody,
>
> Could you please enlighten me, is it possible to have Matlab solve a
> system of linear algebraic equations in parallel fashion? I understand
> that one can use threads, but there doesn't seem any mechanism for
> instructing Matlab to use them in the \ operator!?

For sufficiently large problems, the backslash operator for regular numeric
matrices is multithreaded automatically. You don't need to (and can't) tell
MATLAB to use multiple threads in the \ operator other than by trying to
solve a sufficiently large problem.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Parallel solution of linear algebraic system of equations

From: Petr Krysl

Date: 15 Mar, 2012 15:02:18

Message: 3 of 5

"Steven_Lord" <slord@mathworks.com> wrote in message
> For sufficiently large problems, the backslash operator for regular numeric
> matrices is multithreaded automatically. You don't need to (and can't) tell
> MATLAB to use multiple threads in the \ operator other than by trying to
> solve a sufficiently large problem.

Steve,

Thank you for your reply. Where is the detailed information about parallel solving? Where do I find whether multi threading is used only for dense matrices or also for sparse matrices? Which algorithm is used and how does it scale?

Thank you very much.

Gilles

Subject: Parallel solution of linear algebraic system of equations

From: Edric M Ellis

Date: 15 Mar, 2012 18:28:27

Message: 4 of 5

"Gilles " <louvre65662@mypacks.net> writes:
> Could you please enlighten me, is it possible to have Matlab solve a
> system of linear algebraic equations in parallel fashion? I understand
> that one can use threads, but there doesn't seem any mechanism for
> instructing Matlab to use them in the \ operator!?

In addition to the builtin support that Steve mentioned, gpuArray and
distributed/codistributed arrays have a parallel implementation of \.

<http://www.mathworks.com/products/parallel-computing/demos.html?file=/products/demos/shipping/distcomp/paralleldemo_gpu_backslash.html>

shows the GPU version. (This stuff is all part of Parallel Computing
Toolbox).

Cheers,

Edric.

Subject: Parallel solution of linear algebraic system of equations

From: AccelerEyes

Date: 19 Mar, 2012 03:49:16

Message: 5 of 5

For an even faster \ on the GPU, use Jacket. Benchmark comparisons here: http://accelereyes.com/compare

Tags for 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