#!/usr/bin/env bash

#SBATCH --job-name=ag_parallel_ser
#SBATCH --error=./slurm_reports/job.%J.err 
#SBATCH --output=./slurm_reports/job.%J.out
#SBATCH --nodes=4
#SBATCH --mem=0
#SBATCH --exclude=compute02,compute10
#SBATCH --export=ALL

export LD_LIBRARY_PATH=/home/nschrick/pkg/postgresql/13.4/lib

#Argument for running test batches
NUM_SERV=${1:-1}
TYPE=${2:-sync}
CARS=${3:-2}
DBNAME=${4:-tmp}
NODES=${5:-3}

module load graphviz
module load gcc
module load openmpi
module load cmake
module load postgresql

./run.sh "$NUM_SERV" "$TYPE" "$CARS" "$DBNAME" "$NODES"
