Tags:
create new tag
view all tags

CPU Example

#!/bin/bash
# 
#SBATCH -p wn
#SBATCH --account=cn-test
#SBATCH --time 01:00:00
#SBATCH -e cn-test.err 
#SBATCH -o cn-test.out  # replace default slurm-SLURM_JOB_ID.out

echo HOME: $HOME 
echo USER: $USER 
echo SLURM_JOB_ID: $SLURM_JOB_ID
echo HOSTNAME: $HOSTNAME

# each worker node has local /scratch space to be used during job run
mkdir -p /scratch/$USER/${SLURM_JOB_ID}


sleep 10
# here comes a computation

# cleaning of temporal working dir when job was completed:
rmdir  -rf /scratch/$USER/${SLURM_JOB_ID}

date

-- NinaLoktionova - 2019-09-24

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2019-11-19 - NinaLoktionova
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback