Licensing: Parallel Computing Toolbox labs vs independent MATLAB sessions
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Geoff
2012-5-2
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).
回答(2 个)
Ken Atwell
2012-5-2
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 个评论
Geoff
2012-5-3
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
2013-8-23
@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...
Geoff
2012-5-2
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Parallel Server 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!