parfor の実行中にノード間でデータを交換 (送受信) できるかどうかを知りたいです。私が達成したいのは、次のようなものです。
parfor i = 1:4
%Perform a computation on each column of a 4x4 matrix on 4 different workers (each worker takes one column).
%Make Worker #1 send its data to Worker #3, Worker #3 to Worker #1, Worker #2 ro Worker #4 and Worker #4 to Worker #2.
%Make other computations on the data received from the other workers
end
parfor を離れることなく、これらすべての計算を実行したいと考えています。これに使用できる MPI コマンドはありますか? これは達成可能ですか?もしそうなら、どうすればこれを達成できますか?ありがとう!