Effacer les filtres
Effacer les filtres

render process was terminated: TS_PROCESS_WAS_KILLED

89 vues (au cours des 30 derniers jours)
Zhang Jianyu
Zhang Jianyu le 12 Août 2023
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

Réponses (1)

Raymond Norris
Raymond Norris le 13 Août 2023
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?

Catégories

En savoir plus sur Parallel for-Loops (parfor) dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by