render process was terminated: TS_PROCESS_WAS_KILLED
111 次查看(过去 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!