-
Notifications
You must be signed in to change notification settings - Fork 32
Batch job examples
Markku Alho edited this page Mar 14, 2024
·
2 revisions
#!/bin/bash
#SBATCH --time=0-1:00:00
#SBATCH --job-name=analysator_example
#SBATCH -M carrington
# short medium long 1 3 7
#SBATCH --nodes=1
#SBATCH -c 1 # CPU cores per task
#SBATCH -n 1 # number of tasks (4xnodes)
#SBATCH --mem=400G # memory per node
#SBATCH --array=625-629 # this launches one job per array index (see $SLUMR_ARRAY_TASK_ID)
# some diagnostic
hostname
groups
module purge
# source whatever modules you need and make sure analysator is on your path, etx
source ~/pyvenv
export PYTHONPATH=$PYTHONPATH:/proj/mjalho/.local/:/proj/mjalho/analysator/
export MKL_THREADING_LAYER=GNU
umask 007
#run your script!
python your_fancy_script.py $SLURM_ARRAY_TASK_ID