Newer
Older
Master_thesis / run.job
@Sascha Liechti Sascha Liechti on 3 Sep 2019 1000 bytes ...
#!/bin/bash
#SBATCH --ntasks=1
#SBATCH --time=24:00:00
#SBATCH --gres gpu:Tesla-K80:1 --mem=16G

#/net/cephfs/home/saslie

mkdir -p scratch/$SLURM_JOB_ID
mkdir scratch/$SLURM_JOB_ID/data
mkdir scratch/$SLURM_JOB_ID/data/zfit_toys


cp raremodel-nb.py scratch/$SLURM_JOB_ID
cp pdg_const.py scratch/$SLURM_JOB_ID
cp helperfunctions.py scratch/$SLURM_JOB_ID

cd scratch/$SLURM_JOB_ID

module load vesta cuda
. '/net/cephfs/apps/vendor/Anaconda/5.2.0/anaconda3/etc/profile.d/conda.sh'
echo "Simulation starting"
conda activate rmd
python raremodel-nb.py
conda deactivate
echo "Simulation ended"

cd

#mkdir -p data/$SLURM_JOB_ID
#mkdir data/$SLURM_JOB_ID/data
#mkdir data/$SLURM_JOB_ID/data/zfit_toys

cp -R scratch/$SLURM_JOB_ID  data/finished/
cp slurm-$SLURM_JOB_ID.out data/
# Remove scratch directory at the end of your job
# Do not forget to copy any output first to a safe place
rm -rf scratch/$SLURM_JOB_ID
rm slurm-$SLURM_JOB_ID.out

echo 'Stronger constraint on ff'

# source ~/ml/bin/activate