MATLAB Answers

How to broadcast a variable in spmd mode

2 views (last 30 days)
Wenyu Li
Wenyu Li on 10 Apr 2017
Answered: 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.

Answers (1)

Edric Ellis
Edric Ellis on 11 Apr 2017
The broadcast function to use inside an spmd block is labBroadcast.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags


Translated by