How to broadcast a variable in spmd mode

1 回表示 (過去 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 Center および File ExchangeDistributed Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by