How to save slurm output in my home drive?

조회 수: 13 (최근 30일)
xiaobo wu
xiaobo wu 2021년 10월 30일
댓글: Jaya 2021년 11월 1일
Hi all,
I am learning how to run matlab script by using slurm commands in our university HPC clusters. One problem I have been working hard on is I cannot save sbatch output and the data file generated by matlab script in my home drive. Here is how our school clusters work:
Every user has a network home drive, my drive directory is: /home/myID/rihome. My matlab script and sh files are saved in rihome folder.
In the login node, I submit sh file with the command sbatch xxx.sh. It is successfuly submited with a generated job ID.
However, output files are not saved in rihome drive, instead, they are saved in another node which I cannot open on my local computer.
Therefore, my direct question is: how to edit xxx.sh and matlab script to save outputs in my home drive?
Thanks for any suggestion!

답변 (1개)

Jaya
Jaya 2021년 10월 31일
편집: Jaya 2021년 10월 31일
Hey, I have been also using this slurm stuff from a week or so. I don't face this problem though. I have the following lines in my slurm script. Maybe you can compare and edit...
I have rewritten my account name and email ID for sake of privacy. It wants to run a file named pcalc2. I am also learning this stuff recently so maybe I misunderstood your question.
#!/bin/bash
# to run this on a single-core Matlab job (on one compute node)
#SBATCH -p standard
#SBATCH -A myaccountname
#SBATCH --mail-type=end
#SBATCH --mail-user=myemailID
#SBATCH --job-name=runTest
#SBATCH --output=runTest_%A.out
#SBATCH --error=runTest_%A.err
#SBATCH --ntasks=1
# Load Matlab environment
module load matlab
# Run Matlab single core program
matlab -nodisplay -r \
"pcalc2; exit;"

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by