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.

Respuestas (1)

Edric Ellis
Edric Ellis el 11 de Abr. de 2017

0 votos

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

Categorías

Más información sobre Platform and License en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 10 de Abr. de 2017

Respondida:

el 11 de Abr. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by