render process was terminated: TS_PROCESS_WAS_KILLED
조회 수: 78 (최근 30일)
이전 댓글 표시
My code uses parfeval to run a function @pcal simutaneously on 12 workers. When I start the code, everything runs smoothly but after some time when I come back, the command window appears:
render process was terminated: TS_PROCESS_WAS_KILLED
And instead of 12 workers, only 6 or 7 workers are running.
What does that mean? Does it mean that the other workers have finished their jobs? BTW, I run my codes using shared computing resources on a platform, something like AWS.
Here's my code:
% some parameters
col=4;
yearsbf=10;
numofwk=12;
wkofeach=floor((length(MatchResult)-idfinish)/numofwk);
f(1:numofwk) = parallel.FevalFuture;
% using parallel workers
for i=1:numofwk
if i<numofwk
task=MatchResult((i-1)*wkofeach+1:i*wkofeach,:); % MatchResult is a matrix that contains raw data
elseif i==numofwk
task=MatchResult((i-1)*wkofeach+1:end,:);
end
stklist=unique(task(:,2));
bread=MatchResult(matches(MatchResult(:,2),stklist),:);
f(i)=parfeval(@pcal, task, bread, col, yearsbf);
end
% fetch results
Fetch=cell(numofwk,1);
for i=1:numofwk
[id,fetch_id] = fetchNext(f);
Fetch{id}=fetch_id;
end
댓글 수: 0
답변 (1개)
Raymond Norris
2023년 8월 13일
I suspect worker(s) are crashing because of out of memory issues. What size AWS instance are you using? Do you have a sense of how much memory each of the tasks require when calling pcal?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!