#!/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=2
#SBATCH --mem=0
#SBATCH --exclude=compute10

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

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

module load graphviz
module load gcc
module load openmpi
module load cmake
module load postgresql/12.4

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