- https://www.mathworks.com/help/parallel-computing/spmdsend.html
- https://www.mathworks.com/help/parallel-computing/spmdreceive.html
- https://www.mathworks.com/help/parallel-computing/spmdsendreceive.html
Usage of spmd in matlab
8 views (last 30 days)
Show older comments
Can the spmd parallel structure in MATLAB be used to simulate multiple independent computing nodes that can communicate with each other? That is to simulate each process as a computer.
0 Comments
Accepted Answer
Anagha Mittal
on 26 Sep 2024
Moved: Edric Ellis
on 27 Sep 2024
Yes, the "spmd" parallel structure in MATLAB can be used to simulate multiple independent computing nodes that can communicate with each other. To do so, you may treat each worker or separate MATLAB process as a simulated computing node, and these nodes can exchange data using "spmdSend" and "spmdReceive" functions.
Refer to the following section of "spmd" documentation for more information and an example:
Also, refer to following documentations for better understanding:
Hope this helps!
1 Comment
siyu guo
on 26 Mar 2025
Hello, senior, it was not easy to find an expert who also used matlab to do spmd. Recently, I tried to use spmd in matlab to design parallel "conjugate gradient method" to accelerate the iterative calculation of large sparse matrices. I just raised a question about spmdCat:my question about spmdCat
Sincerely hope you can help answer after watching this message, and I would like to ask you about the acceleration effect of matlab. Initially, the main body of my program was edited in matlab, but as the mesh is denser, the calculation time will increase geometrically.
So I want to seek advice from you whether to continue to write parallel programs in matlab, or switch to another language (or software) as soon as possible?
More Answers (1)
埃博拉酱
on 26 Sep 2024
1 Comment
siyu guo
on 26 Mar 2025
大佬你好,好不容易才找到也用matlab做spmd的同志,最近我尝试在matlab里利用spmd设计并行共轭梯度法加速大型稀疏矩阵迭代计算,刚刚我发布了一个提问,my question about spmdCat
希望大佬看到这条消息后能帮忙解答下,还有就是想问一下大佬对maltab的并行加速效果了解得多么,我之前串行程序主体都是在matlab里编的,但网格一密之后,计算时长就几何指数增长,
所以也想请教一下是否继续在matlab里编并行程序,还是尽早转行别的语言(或软件)?
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!