#!/bin/bash
#
#
#SBATCH --time=0-6:00:00
#SBATCH --nodes=1
#SBATCH --mem=10000M
#SBATCH --cpus-per-task=16
#SBATCH --array=0-3
#SBATCH --account=GEOG024542

i=${SLURM_ARRAY_TASK_ID}

module  load apps/singularity/1.1.3 lib/openmpi/4.0.2-gcc.4.8.5 

srun singularity exec \
-B/user/work/$(whoami):/user/work/$(whoami) \
/user/work/$(whoami)/Abil/singularity/abil.sif \
python /user/work/$(whoami)/Abil/hpc_example/hpc_tune.py ${SLURM_CPUS_PER_TASK} ${i} "knn"

export SINGULARITY_CACHEDIR=/user/work/$(whoami)/.singularity
