From c83f50ebf504b7476983d3dd463412fea02610f3 Mon Sep 17 00:00:00 2001 From: pat-alt <altmeyerpat@gmail.com> Date: Tue, 17 Oct 2023 09:59:11 +0200 Subject: [PATCH] try neach nothing --- experiments/jobscripts/testing/cali.sh | 2 +- experiments/setup_env.jl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/experiments/jobscripts/testing/cali.sh b/experiments/jobscripts/testing/cali.sh index 1c61c0b2..da100a68 100644 --- a/experiments/jobscripts/testing/cali.sh +++ b/experiments/jobscripts/testing/cali.sh @@ -14,4 +14,4 @@ module load openmpi source experiments/slurm_header.sh -srun julia --project=experiments --threads $SLURM_CPUS_PER_TASK experiments/run_experiments.jl -- data=california_housing output_path=results mpi grid_search n_individuals=10 n_each=$SLURM_CPUS_PER_TASK threaded > experiments/grid_search_california_housing.log \ No newline at end of file +srun julia --project=experiments --threads $SLURM_CPUS_PER_TASK experiments/run_experiments.jl -- data=california_housing output_path=results mpi grid_search n_individuals=10 n_each=nothing threaded > experiments/grid_search_california_housing.log \ No newline at end of file diff --git a/experiments/setup_env.jl b/experiments/setup_env.jl index 8cf0de55..699dd581 100644 --- a/experiments/setup_env.jl +++ b/experiments/setup_env.jl @@ -69,7 +69,8 @@ const N_IND_SPECIFIED = n_ind_specified if any(contains.(ARGS, "n_each=")) n_each = ARGS[findall(contains.(ARGS, "n_each="))][1] |> - x -> replace(x, "n_each=" => "") |> x -> parse(Int, x) + x -> replace(x, "n_each=" => "") |> + x -> x == "nothing" ? nothing : parse(Int, x) else n_each = 32 end -- GitLab