No print contents in slurm.out files

조회 수: 50 (최근 30일)
RUAN YY
RUAN YY 2020년 9월 25일
답변: xinchao su 2024년 1월 15일
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.
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!

채택된 답변

Michael Croucher
Michael Croucher 2020년 9월 28일
편집: Michael Croucher 2020년 9월 28일
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.

추가 답변 (1개)

xinchao su
xinchao su 2024년 1월 15일
--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.

카테고리

Help CenterFile Exchange에서 Cluster Configuration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by