2024-04-21 14:54:11 +02:00
|
|
|
#!/usr/bin/env bash
|
2024-05-09 12:18:08 +02:00
|
|
|
#SBATCH --time=12:00:00
|
2024-04-21 14:54:11 +02:00
|
|
|
#SBATCH --partition=cpu
|
2024-05-09 12:18:08 +02:00
|
|
|
#SBATCH --array=0-810
|
2024-04-21 14:54:11 +02:00
|
|
|
#SBATCH --output=./output/output_run_%j.txt
|
|
|
|
#SBATCH --error=./output/error_run_%j.txt
|
2024-05-09 12:18:08 +02:00
|
|
|
#SBATCH --nodelist=oc-compute02,oc-compute03
|
|
|
|
#SBATCH --mem=6G
|
|
|
|
problems=("iris" "nurse" "german")
|
|
|
|
|
|
|
|
current_problem=${problems[(${SLURM_ARRAY_TASK_ID}/270)]}
|
|
|
|
current_variant=$(((${SLURM_ARRAY_TASK_ID} / 30) % 9 + 1))
|
|
|
|
current_branch="${current_problem}_${current_variant}"
|
|
|
|
|
|
|
|
cd /data/oc-compute02/merljoha/
|
|
|
|
git clone -b $current_branch --single-branch "https://merl.dnshome.de/git/Hans/haga.git" ./$current_branch
|
|
|
|
cd /data/oc-compute03/merljoha/
|
|
|
|
git clone -b $current_branch --single-branch "https://merl.dnshome.de/git/Hans/haga.git" ./$current_branch
|
|
|
|
|
|
|
|
srun bash -c "cd /data/$SLURMD_NODENAME/merljoha/$current_branch; nix develop --command stack --no-nix --system-ghc --no-install-ghc run haga-lambda"
|