Logging parellel pool worker diaries to single file
Mostra commenti meno recenti
I'm converting a procedural script into a parallel script. The existing script dumps the command window output using Diary. So each job's output was nicely lumped together. Now though, as I have tasks running in parallel my log file is very disjointed. Not ideal.
Is there a way I can collect each worker's diary and send it to a dataQueue for storage in a single file? In pseudo code it would be:
parfor ...
run task (including command window outputs)
send Diary content back to client dataPool for writing to log file
end
Is there some method within my parfor loop of saying 'send(q, thisWorker.Diary)'?
2 Commenti
Ben Wetherill
il 31 Gen 2018
Modificato: Ben Wetherill
il 31 Gen 2018
Ben Wetherill
il 1 Feb 2018
Modificato: Ben Wetherill
il 1 Feb 2018
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!