create new tag
view all tags

CPU Example

#SBATCH -p wn
#SBATCH --account=t3
#SBATCH --job-name=job-name
#SBATCH --mem=3000M                     # memory 3GB (per job)
#SBATCH --time 01:00:00
#SBATCH -o %x-%j.out    # replace default slurm-SLURM_JOB_ID.out; %x is a job-name (or script name when there is no job-name)
#SBATCH -e %x-%j.err    # replace default slurm-SLURM_JOB_ID.err 

echo HOME: $HOME 
echo USER: $USER 

# each worker node has local /scratch space to be used during job run
mkdir -p /scratch/$USER/${SLURM_JOB_ID}
export TMPDIR=/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}


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