render process was terminated: TS_PROCESS_WAS_KILLED

77 次查看(过去 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

回答(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 CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by