How to save slurm output in my home drive?
12 ビュー (過去 30 日間)
古いコメントを表示
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!
0 件のコメント
回答 (1 件)
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 Center および File Exchange で Third-Party Cluster Configuration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!