From 701b2664ba2595426e56da91b5762291f6b7dd87 Mon Sep 17 00:00:00 2001 From: jsjoona Date: Wed, 24 Sep 2025 12:24:19 +0300 Subject: [PATCH 1/2] Updated Mahti compile and submit scripts. --- csc-mahti/compile-cpu.sh | 3 +++ csc-mahti/submit-cpu.sh | 1 + csc-mahti/submit-gpu.sh | 1 + 3 files changed, 5 insertions(+) diff --git a/csc-mahti/compile-cpu.sh b/csc-mahti/compile-cpu.sh index a95dd48..68f8476 100755 --- a/csc-mahti/compile-cpu.sh +++ b/csc-mahti/compile-cpu.sh @@ -3,6 +3,9 @@ # Make the following change in the Makefile first # - CFLAGS += -shlib # + CFLAGS += -shared +# +# With the above change the code compiles but will segfault when running. +# Instead, comment out the above line. module purge module load aocc mpich hdf5/1.10.7-mpi make clean diff --git a/csc-mahti/submit-cpu.sh b/csc-mahti/submit-cpu.sh index f17b3c7..65d2913 100644 --- a/csc-mahti/submit-cpu.sh +++ b/csc-mahti/submit-cpu.sh @@ -15,6 +15,7 @@ module load aocc mpich hdf5/1.10.7-mpi export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK export FOR_PRINT=$SLURM_JOB_ID.stdout +export HDF5_USE_FILE_LOCKING=FALSE echo Job name $SLURM_JOB_NAME echo Job id $SLURM_JOB_ID diff --git a/csc-mahti/submit-gpu.sh b/csc-mahti/submit-gpu.sh index a0cd4be..4d16adf 100644 --- a/csc-mahti/submit-gpu.sh +++ b/csc-mahti/submit-gpu.sh @@ -15,6 +15,7 @@ module load .unsupported nvhpc/22.3 export FOR_PRINT=$SLURM_JOB_ID.stdout +export HDF5_USE_FILE_LOCKING=FALSE #Untested for gpu but this was needed for cpu echo Job name $SLURM_JOB_NAME echo Job id $SLURM_JOB_ID From 27194f05bb97009d433a0819603637f94e7ec791 Mon Sep 17 00:00:00 2001 From: jsjoona Date: Fri, 6 Feb 2026 12:12:14 +0200 Subject: [PATCH 2/2] Added leonardo cpu compile --- cineca-leonardo/compile-cpu.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cineca-leonardo/compile-cpu.sh b/cineca-leonardo/compile-cpu.sh index 77fc024..9c72268 100755 --- a/cineca-leonardo/compile-cpu.sh +++ b/cineca-leonardo/compile-cpu.sh @@ -1 +1,5 @@ -#TBD +#!/bin/bash + +module load hdf5/1.14.3--intel-oneapi-mpi--2021.10.0--oneapi--2023.2.0 intel-oneapi-compilers +make clean +make ascot5_main -j 8 MPI=1 FLAGS="-lhdf5_hl -vecabi=cmdtarget -qno-openmp-offload -diag-disable 3180,10441,10006" \ No newline at end of file