MATLAB Answers

Wenyu Li
0

How to broadcast a variable in spmd mode

Asked by Wenyu Li
on 10 Apr 2017
Latest activity Answered by Edric Ellis
on 11 Apr 2017
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.

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Edric Ellis
on 11 Apr 2017

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

  0 Comments

Sign in to comment.