Usage of spmd in matlab

조회 수: 7 (최근 30일)
yuxiao qi
yuxiao qi 2024년 9월 26일
댓글: siyu guo 2025년 3월 26일
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.

채택된 답변

Anagha Mittal
Anagha Mittal 2024년 9월 26일
이동: Edric Ellis 2024년 9월 27일
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
siyu guo
siyu guo 2025년 3월 26일
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?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

埃博拉酱
埃博拉酱 2024년 9월 26일
  댓글 수: 1
siyu guo
siyu guo 2025년 3월 26일
大佬你好,好不容易才找到也用matlab做spmd的同志,最近我尝试在matlab里利用spmd设计并行共轭梯度法加速大型稀疏矩阵迭代计算,刚刚我发布了一个提问,my question about spmdCat
希望大佬看到这条消息后能帮忙解答下,还有就是想问一下大佬对maltab的并行加速效果了解得多么,我之前串行程序主体都是在matlab里编的,但网格一密之后,计算时长就几何指数增长,
所以也想请教一下是否继续在matlab里编并行程序,还是尽早转行别的语言(或软件)?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Parallel Computing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by