From c9866d83af5630854ca74094185c9c0a16b8b854 Mon Sep 17 00:00:00 2001 From: Pat Alt <55311242+pat-alt@users.noreply.github.com> Date: Wed, 4 Oct 2023 15:33:06 +0200 Subject: [PATCH] updated script --- experiments/daic/testing/lin_sep.sh | 5 +++-- experiments/daic/testing/lin_sep_no_threads.sh | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 experiments/daic/testing/lin_sep_no_threads.sh diff --git a/experiments/daic/testing/lin_sep.sh b/experiments/daic/testing/lin_sep.sh index 67df795b..765609ad 100644 --- a/experiments/daic/testing/lin_sep.sh +++ b/experiments/daic/testing/lin_sep.sh @@ -1,7 +1,7 @@ #!/bin/bash #SBATCH --job-name="Grid-search Linearly Separable (ECCCo)" -#SBATCH --time=01:00:00 +#SBATCH --time=00:30:00 #SBATCH --ntasks-per-node=5 #SBATCH --cpus-per-task=4 #SBATCH --partition=general @@ -11,6 +11,7 @@ module use /opt/insy/modulefiles # Use DAIC INSY software collection module load openmpi +set -x export SRUN_CPUS_PER_TASK="$SLURM_CPUS_PER_TASK" -srun julia --project=experiments 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 --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 diff --git a/experiments/daic/testing/lin_sep_no_threads.sh b/experiments/daic/testing/lin_sep_no_threads.sh new file mode 100644 index 00000000..0b84c07b --- /dev/null +++ b/experiments/daic/testing/lin_sep_no_threads.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +#SBATCH --job-name="Grid-search Linearly Separable (ECCCo)" +#SBATCH --time=00:30:00 +#SBATCH --ntasks-per-node=20 +#SBATCH --cpus-per-task=1 +#SBATCH --partition=general +#SBATCH --mem-per-cpu=4GB +#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes. + +module use /opt/insy/modulefiles # Use DAIC INSY software collection +module load openmpi + +export SRUN_CPUS_PER_TASK="$SLURM_CPUS_PER_TASK" + +srun julia --project=experiments experiments/run_experiments.jl -- data=linearly_separable output_path=results mpi grid_search n_individuals=10 > experiments/grid_search_linearly_separable.log -- GitLab