From 6250dc329c0d39db553132f0a1d7953d64d7f4cf Mon Sep 17 00:00:00 2001 From: Jeremiah Lewis <4462211+jeremiahpslewis@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:48:17 +0100 Subject: [PATCH] Update Dockerfile and logging configuration in dddc_slurm_batch.jl; remove unbuffered option from sbatch script --- Dockerfile | 2 +- src/dddc_slurm_batch.jl | 7 ++++++- src/dddc_slurm_hu_sbatch.sh | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f1ef817b..7a368b47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM julia:1.11 +FROM julia:1.11-alpine RUN mkdir /depot ENV JULIA_PATH=/usr/local/julia diff --git a/src/dddc_slurm_batch.jl b/src/dddc_slurm_batch.jl index 1e174635..f39ee8cf 100644 --- a/src/dddc_slurm_batch.jl +++ b/src/dddc_slurm_batch.jl @@ -1,7 +1,12 @@ using Logging using LoggingExtras -debuglogger = FormatLogger(println, stderr) +f_logger = FormatLogger(stderr) do io, args + println(io, args._module, " | ", "[", args.level, "] ", args.message) +end + +debuglogger = MinLevelLogger(f_logger, Logging.Info) + global_logger(debuglogger) @info "Loading AlgComp packages." diff --git a/src/dddc_slurm_hu_sbatch.sh b/src/dddc_slurm_hu_sbatch.sh index 5ce44abc..63b805b9 100644 --- a/src/dddc_slurm_hu_sbatch.sh +++ b/src/dddc_slurm_hu_sbatch.sh @@ -7,7 +7,6 @@ #SBATCH --cpus-per-task=32 # 128 core #SBATCH --time=24:00:00 # For full run true value should be <13 hours #SBATCH --partition standard -#SBATCH --unbuffered # For full version, N_GRID_INCREMENTS=100 export N_GRID_INCREMENTS=20 # Number of grid increments