Overhead in parallel computing toolbox

8 Ansichten (letzte 30 Tage)
Gonzalo Blanco
Gonzalo Blanco am 2 Jun. 2016
Beantwortet: Walter Roberson am 2 Jun. 2016
Hi, I have a problem with a parallel process.
I am calling a simulink model with a parfor loop to perform a kind of a montecarlo simulation.
if I run a scaling test, I obtain the following results in terms of speedup:
The hardware I'm using has two processors (Intel® Xeon® Processor E5-2630 v3). it means 8+8 physical cores.
It seems that there is any kind of overhead when using the two processors in the same parallel pool.
am I right? if yes, is there any way to solve or workaround this issue?

Antworten (1)

Walter Roberson
Walter Roberson am 2 Jun. 2016
Yes, there can be a fair bit of overhead in parallel workers.
What you would ideally prefer to do is transfer as little data as possible with the workers, and have them do as much work as possible: you do this so that you amortize the overhead.
What you really do not want to do is transfer a lot of data and have the worker do very little: that wastes all of the time on setting up the task.

Kategorien

Mehr zu Multicore Processor Targets finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by