How to broadcast a variable in spmd mode

조회 수: 5 (최근 30일)
Wenyu Li
Wenyu Li 2017년 4월 10일
답변: Edric Ellis 2017년 4월 11일
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일
The broadcast function to use inside an spmd block is labBroadcast.

카테고리

Help CenterFile Exchange에서 Distributed Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by