parfor failed to deserialize data.

조회 수: 8 (최근 30일)
Yi-Ping
Yi-Ping 2013년 8월 9일
댓글: Kalpesh Patil 2017년 1월 2일
Hi,
I tried to run a program using parfor. The code looks like
matlabpool open local 3
parfor i=1:n
..........
end
matlabpool close
where n is about 150000. I have tested the code, when n is small, it works perfectly. However, when I increased n to 150000, it did finished about 2/3 of the parfor loop, the error occur. The error message is
Error using distcompdeserialize Failed to deserialize data.
The machine I used is SunX4100, 4 AMD Opteron and 8Gb memory (2Gb each). The operating system is CentOS 6 and matlab version is R2013a.
Cheers, YP

채택된 답변

Friedrich
Friedrich 2013년 8월 9일
편집: Friedrich 2013년 8월 9일
Hi,
it seems like a worker is sending back data to MATLAB which is corruped or too big. keep in mind the size limitation of transfering data between MATLAB and the worker:
64-bit: 2.0 GB
32-bit: 600 MB
Can you share code which raises this error? Do you get that error also when running the code on a different machine?
  댓글 수: 2
Yi-Ping
Yi-Ping 2013년 8월 13일
Hi Friedrich,
Thanks for your answer. The code is working fine now. I reduce the transfering data and run on other machine with larger memory.
Cheers, YP
Kalpesh Patil
Kalpesh Patil 2017년 1월 2일
HI Yi-Ping, I was also facing same issue about 'deserialize' error. When I use parfor with matlabpool with 2 workers. It works fine, but with 4 it gives error. SO i want to ask how to reduce the transferring data, can you share a bit of code you used for data reduction.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by