No print contents in slurm.out files
16 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
RUAN YY
le 25 Sep 2020
Réponse apportée : xinchao su
le 15 Jan 2024
Hey guys! I am running MATLAB programs on the HPC with slurm.
And I found that all the output that is supposed to show up in the command line are stored in the slurm-xxxx.out file, which is really cumbersome as my programs print a lot things.
Like this.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/366514/image.png)
Is there anyway to avoid those output except for commenting all the fprint and disp?
I tried "-nodisplay -nodesktop -nosplash -batch" but the output is still there.
Thanks a lot!
0 commentaires
Réponse acceptée
Michael Croucher
le 28 Sep 2020
Modifié(e) : Michael Croucher
le 28 Sep 2020
I can't test this as I don't currently have access to a SLURM cluster with MATLAB on it. I guess you submit jobs using the sbatch command? As far as I know, you can suppress all standard output by adding the following to your sbatch command
sbatch --output=/dev/null --error=/dev/null
Take care to ensure that this doesn't get rid of output that's important! This flushes away all of that potentially useful output.
0 commentaires
Plus de réponses (1)
xinchao su
le 15 Jan 2024
--parsable
Outputs only the job id number and the cluster name if present. The values are separated by a semicolon. Errors will still be displayed.
0 commentaires
Voir également
Catégories
En savoir plus sur Third-Party Cluster Configuration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!