Slow access of large composite element

조회 수: 2 (최근 30일)
rp
rp 2017년 4월 10일
댓글: Walter Roberson 2018년 2월 9일
I am using spmd to run some parallel algorithms which periodically communicate. At the end, each process has a structure which I would like to pull back to the client for further analysis. Unfortunately, the size of the structure is large (but I don't think they are excessive), and trying to pull just one of the composite elements leads to a timeout of the cluster (30 min) and therefore fails. Is there any way to have the client as one of the spmd processes, or a more efficient way to transfer data from one or more of the workers back to the client in a more efficient way?
EDIT:
A clunky workaround is to have each process save their workspace to a directory. This seems to work pretty quickly, but it's obnoxious to have to import all the workspaces to do the diagnostics. I would appreciate more elegant solutions.
  댓글 수: 5
rp
rp 2018년 2월 9일
@Walter -- yes you must be right. I quickly read through and saw that the example wouldn't work in an spmd block, but there are probably other examples which may.
Walter Roberson
Walter Roberson 2018년 2월 9일
Looking more closely, it is for "communicating jobs", of which spmd is one kind.

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

채택된 답변

Walter Roberson
Walter Roberson 2017년 4월 11일
편집: Walter Roberson 2018년 2월 8일
Perhaps the new (R2017a) send() and poll() and afterEach() might help?

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by