How to broadcast a variable in spmd mode

The question I'm trying to solve is to broadcast a scalar variable x inside a spmd mode into an array of size numlab that can be seen by all the parallel workers. I know that in MPI this is called a broadcast operation but I can't find similar operations in MATLAB.

Antworten (1)

Edric Ellis
Edric Ellis am 11 Apr. 2017

0 Stimmen

The broadcast function to use inside an spmd block is labBroadcast.

Kategorien

Mehr zu Platform and License finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 10 Apr. 2017

Beantwortet:

am 11 Apr. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by