Licensing: Parallel Computing Toolbox labs vs independent MATLAB sessions

5 views (last 30 days)
From a licensing perspective, what's the difference between running n independent MATLAB sessions and running n Parallel Computing Toolbox labs? I sometimes wish I could have more labs on my local machine to test algorithms, but of course run into the limit of 12. But I can have unlimited (well, hardware limited) independent sessions running.
  1 Comment
Geoff
Geoff on 2 May 2012
Here's a thought: Run the parallel toolbox with multiple instances of MatLab =)
I'm gonna try this on my forecasting server that has 16 cores. Two instances of MatLab with parallel toolbox should utilise that quite nicely!
If you write your parallel code effectively, then you should be maxing out all your cores (up to 12, anyway) most of the time. If not, then adding an extra instance of MatLab would do the trick. I wouldn't add too many though, or the OS scheduler is going to struggle.
Generally speaking, having more workers than CPU cores reduces performance (IF all workers are actually doing work).

Sign in to comment.

Answers (2)

Ken Atwell
Ken Atwell on 2 May 2012
Independent MATLAB sessions are just that, independent. You could create more than 12 if you wanted to (and your system can handle it), but they would not be able to partition a single task with PARFOR, for example.
  10 Comments
Geoff
Geoff on 3 May 2012
No I don't have any experience with those. I've used some pretty raw BLAS stuff in the past but dunno if it was from an official library. I wanted to know what you used, then maybe check it out! ;-) I do have some code that uses Blitz++ which is a heavily templated C++ monster, but I haven't played round with it. Makes your C++ look almost like MatLab. Needs a real compiler though (ie gcc) - not sure if the latest Microsoft Visual C++ can handle the necessary optimisations.
Kozlov Alexandre
Kozlov Alexandre on 23 Aug 2013
@Ken: is there any limit for a number of independent MatLab sessions I can run on a single computer? I don't talk about hardware limitation, but a legal one. I have an NNU licence, and I've been told that one cannot run more than 2 MatLab sessions simultaneously. But I never seen any confirmation of this limitation...

Sign in to comment.


Geoff
Geoff on 2 May 2012
Coming from a different programming background I would intuitively say that with parallelisation you can work concurrently with a single copy of a large dataset in memory. With multiple processes you must load that dataset into each process.
If you had a fairly sizable dataset and a moderate number of workers, the inability to share memory across MatLab processes could be a show-stopper.
However, I don't know for certain if this is really what happens in MatLab. If it doesn't share data across worker threads I'd be extremely surprised, and wonder why I paid $2000 for the toolbox.

Categories

Find more on MATLAB Parallel Server in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!