#!/usr/bin/env bash

#SBATCH --job-name=ecm-debug
# Forschergruppe Schug
#SBATCH --account=hkf6
# 48 Cores, 512GiB RAM, 4x NVIDIA A100 GPUs
#SBATCH --partition=booster
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
# For now, we are using a single GPU only
#SBATCH --gres=gpu:1
#SBATCH --time=00:10:00
#SBATCH --output=logs/ecm-debug-%j.log
#SBATCH --error=logs/ecm-debug-%j.log

SOURCE_DIR=/p/project/cellsinsilico/paulslustigebude
OUTPUT_DIR=/p/scratch/cellsinsilico/paul/nastja-out/ecm-debug

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

# This is actually the default behavior for a single task anyways
# However I'm leaving this here for documentation reasons
export CUDA_VISIBLE_DEVICES=0

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