From d314e527ebeb8087bdc15c7f7ad163a35fb2bf89 Mon Sep 17 00:00:00 2001
From: pat-alt <altmeyerpat@gmail.com>
Date: Mon, 16 Oct 2023 11:44:03 +0200
Subject: [PATCH] threaded vs non-threaded

---
 experiments/jobscripts/testing/lin_sep.sh        |  6 +++---
 .../jobscripts/testing/lin_sep_threaded.sh       | 16 ++++++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)
 create mode 100644 experiments/jobscripts/testing/lin_sep_threaded.sh

diff --git a/experiments/jobscripts/testing/lin_sep.sh b/experiments/jobscripts/testing/lin_sep.sh
index 661d4dbb..11c46c6d 100644
--- a/experiments/jobscripts/testing/lin_sep.sh
+++ b/experiments/jobscripts/testing/lin_sep.sh
@@ -2,8 +2,8 @@
 
 #SBATCH --job-name="Grid-search Linearly Separable (ECCCo)"
 #SBATCH --time=00:30:00
-#SBATCH --ntasks-per-node=5
-#SBATCH --cpus-per-task=4
+#SBATCH --ntasks-per-node=20
+#SBATCH --cpus-per-task=1
 #SBATCH --partition=compute
 #SBATCH --mem-per-cpu=4GB
 #SBATCH --account=research-eemcs-insy
@@ -13,4 +13,4 @@ module load 2023r1 openmpi
 
 source experiments/slurm_header.sh
 
-srun julia --project=experiments --threads $SLURM_CPUS_PER_TASK experiments/run_experiments.jl -- data=linearly_separable output_path=results mpi grid_search n_individuals=10 threaded > experiments/grid_search_linearly_separable.log
+srun julia --project=experiments experiments/run_experiments.jl -- data=linearly_separable output_path=results mpi grid_search n_individuals=1 > experiments/grid_search_linearly_separable.log
diff --git a/experiments/jobscripts/testing/lin_sep_threaded.sh b/experiments/jobscripts/testing/lin_sep_threaded.sh
new file mode 100644
index 00000000..c45cbb39
--- /dev/null
+++ b/experiments/jobscripts/testing/lin_sep_threaded.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+#SBATCH --job-name="Grid-search Linearly Separable (ECCCo)"
+#SBATCH --time=00:30:00
+#SBATCH --ntasks-per-node=5
+#SBATCH --cpus-per-task=4
+#SBATCH --partition=compute
+#SBATCH --mem-per-cpu=4GB
+#SBATCH --account=research-eemcs-insy
+#SBATCH --mail-type=END     # Set mail type to 'END' to receive a mail when the job finishes. 
+
+module load 2023r1 openmpi
+
+source experiments/slurm_header.sh
+
+srun julia --project=experiments --threads $SLURM_CPUS_PER_TASK experiments/run_experiments.jl -- data=linearly_separable output_path=results mpi grid_search n_individuals=1 threaded > experiments/grid_search_linearly_separable.log
-- 
GitLab