#!/bin/bash
#SBATCH --job-name parallel
#SBATCH --cpus-per-task 4 
#SBATCH --ntasks 1
#SBATCH --mem-per-cpu=24gb 
#SBATCH --time 40:30:00
#SBATCH --array=0-50
#SBATCH --mail-type=END
#SBATCH --mail-user=leello.dadi@epfl.ch

RUNPATH = "/home/dadi/quadpoly/quadpoly/clean-code/"
ARGS=(10 25 50 75 100 125 150 200 225 250)
cd "${RUNPATH}"
source ../myvenv/bin/activate
srun python parallel.py --dim=${ARGS[$SLURM_ARRAY_TASK_ID/5]} --id=$(($SLURM_ARRAY_TASK_ID % 5))
deactivate
echo "DONE !"
