#!/usr/bin/env bash

#SBATCH --job-name=julian-animation
#SBATCH --account=hkf6
#SBATCH --partition=booster
#SBATCH --nodes=8
#SBATCH --ntasks=32
# Counted per node
#SBATCH --gres=gpu:4
#SBATCH --time=03:30:00
#SBATCH --output=logs/%x-%A_%a.log
#SBATCH --error=logs/%x-%A_%a.log

SOURCE_DIR=/p/project/cellsinsilico/paulslustigebude
OUTPUT_DIR="/p/scratch/cellsinsilico/paul/nastja-out/${SLURM_JOB_NAME}"

echo "outdir is ${OUTPUT_DIR}"

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

srun --unbuffered "${SOURCE_DIR}/nastja/build-cuda/nastja" \
  -c "${SOURCE_DIR}/ma/experiments/configs/${SLURM_JOB_NAME}.json" \
  -o "${OUTPUT_DIR}"
