#!/usr/bin/env bash

#SBATCH --job-name=varied-fillings-nocuda
# Forschergruppe Schug
#SBATCH --account=hkf6
# 48 Cores, 512GiB RAM, 4x NVIDIA A100 GPUs
#SBATCH --partition=booster
# Right now we're using a single node
#SBATCH --nodes=1
#SBATCH --ntasks=48
#SBATCH --cpus-per-task=1
#SBATCH --time=02:00:00
#SBATCH --output=logs/varied-fillings-nocuda-%A-%3a.log
#SBATCH --error=logs/varied-fillings-nocuda-%A-%3a.log
#SBATCH --array=0-100:10

IDENT=$(printf "%03d" "${SLURM_ARRAY_TASK_ID}")
SOURCE_DIR=/p/project/cellsinsilico/paulslustigebude
OUTPUT_DIR="/p/scratch/cellsinsilico/paul/nastja-out/varied-fillings-nocuda-${IDENT}"

mkdir -p "${OUTPUT_DIR}"
source "${SOURCE_DIR}/activate-nastja-modules"

srun "${SOURCE_DIR}/nastja/build-nocuda/nastja" \
  -c "${SOURCE_DIR}/ma/experiments/generated/varied-fillings-${IDENT}.json" \
  -o "${OUTPUT_DIR}"
