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.

답변 (1개)

Edric Ellis
Edric Ellis 2017년 4월 11일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Platform and License에 대해 자세히 알아보기

태그

질문:

2017년 4월 10일

답변:

2017년 4월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by