From db54c900585d7494524ae42339818fea11769d42 Mon Sep 17 00:00:00 2001 From: John Omotani Date: Fri, 2 Aug 2024 22:10:04 +0100 Subject: [PATCH] Compile system image to speed up 'debug_checks' CI job --- .github/workflows/debug_checks.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/debug_checks.yml b/.github/workflows/debug_checks.yml index 4685477371..4f9f4f7069 100644 --- a/.github/workflows/debug_checks.yml +++ b/.github/workflows/debug_checks.yml @@ -28,14 +28,13 @@ jobs: project: 'moment_kinetics/' - name: Debug test run: | - cd moment_kinetics - # Hard code the debug level so that we can run without using the # `--compiled-modules=no` flag, which breaks Symbolics.jl at the # moment. - sed -i -e "s/_debug_level = get_options.*/_debug_level = 2/" src/debugging.jl + sed -i -e "s/_debug_level = get_options.*/_debug_level = 2/" moment_kinetics/src/debugging.jl julia --project -e 'using MPIPreferences; MPIPreferences.use_system_binary(); using Pkg; Pkg.precompile()' + julia --project -O3 --check-bounds=yes precompile.jl --debug 2 # Need to use openmpi so that the following arguments work: # * `--mca rmaps_base_oversubscribe 1` allows oversubscription (more processes @@ -43,5 +42,5 @@ jobs: # * `--mca mpi_yield_when_idle 1` changes a setting to prevent excessively # terrible performance when oversubscribing. ## Don't use --compiled-modules=no for now, as it currently breaks Symbolics.jl - #mpiexec -np 4 --mca rmaps_base_oversubscribe 1 julia --project --check-bounds=yes --compiled-modules=no debug_test/sound_wave_tests.jl --debug 2 - mpiexec -np 4 --mca rmaps_base_oversubscribe 1 julia --project --check-bounds=yes debug_test/runtests.jl --debug 2 + #mpiexec -np 4 --mca rmaps_base_oversubscribe 1 julia --project --check-bounds=yes --compiled-modules=no moment_kinetics/debug_test/sound_wave_tests.jl --debug 2 + mpiexec -np 4 --mca rmaps_base_oversubscribe 1 julia --project -Jmoment_kinetics.so -O3 --check-bounds=yes moment_kinetics/debug_test/runtests.jl --debug 2