render process was terminated: TS_PROCESS_WAS_KILLED

50 ビュー (過去 30 日間)
Zhang Jianyu
Zhang Jianyu 2023 年 8 月 12 日
回答済み: Raymond Norris 2023 年 8 月 13 日
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

回答 (1 件)

Raymond Norris
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?

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by