How to save slurm output in my home drive?

25 visualizaciones (últimos 30 días)
xiaobo wu
xiaobo wu el 30 de Oct. de 2021
Comentada: Jaya el 1 de Nov. de 2021
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!

Respuestas (1)

Jaya
Jaya el 31 de Oct. de 2021
Editada: Jaya el 31 de Oct. de 2021
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;"

Categorías

Más información sobre Cluster Configuration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by