How matlabpool does work??
Show older comments
Hi all
I am a new Matlab users and actually I would like to optimize a simple algorithm with parallel computing. By optimize I mean that getting the results faster than waiting for some hours for a merely launched algorithm... Could matlabpool helps me out??
Thx in advance
Ag Vdk
5 Comments
Again Vaudek
on 10 Apr 2013
The obtain an increase of performance using parallel computing, the problem that you are solving must be formulated/implemented in a way that is well suited for parallelization.
Slow code is often slow because it was poorly designed and going parallel would bring no improvement, hence my question.
Again Vaudek
on 10 Apr 2013
It is worth spending 30 minutes just for setting up a local parallel configuration, because your PDE solver may be able to exploit a few workers by itself. It is not something that I've often seen though, and usually I have to work a little on my code before I can see some improvement.
If you had a Monte-Carlo simulation to run though, I'd say that you could invest a day, because each experiment is disjoint from the others and writing code that is well suited for parallelization is almost direct. It means somehow adding the code for opening the pool, replacing FOR with PARFOR, and thinking a little about how you define/store sets of parameters/solutions.
Accepted Answer
More Answers (1)
Again Vaudek
on 10 Apr 2013
0 votes
Categories
Find more on Surrogate Optimization 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!