From fd5076c98acfaa28572e392712a5fd4420b20b20 Mon Sep 17 00:00:00 2001 From: John Omotani Date: Tue, 8 Oct 2024 12:38:29 +0100 Subject: [PATCH] check HDF5 without moment kinetics --- .github/workflows/parallel_test.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/parallel_test.yml b/.github/workflows/parallel_test.yml index c413e23e3b..887971e1b6 100644 --- a/.github/workflows/parallel_test.yml +++ b/.github/workflows/parallel_test.yml @@ -21,17 +21,18 @@ jobs: - uses: julia-actions/cache@v2 - run: | touch Project.toml - julia --project -O3 --check-bounds=no -e 'import Pkg; Pkg.add(["MPI", "MPIPreferences"]); using MPIPreferences; MPIPreferences.use_jll_binary("OpenMPI_jll")' - julia --project -O3 --check-bounds=no -e 'using MPI; MPI.install_mpiexecjl(; destdir=".")' - julia --project -O3 --check-bounds=no -e 'import Pkg; Pkg.add(["HDF5", "Random", "SpecialFunctions", "StatsBase", "Test"]); Pkg.develop(path="moment_kinetics/")' - julia --project -O3 --check-bounds=no -e 'import Pkg; Pkg.precompile()' - julia --project -O3 -e 'using MPI; using HDF5; println("check if HDF5 has parallel ", HDF5.has_parallel())' - # Need to use openmpi so that we can use `--oversubscribe` to allow using more MPI ranks than physical cores - ./mpiexecjl -np 3 --oversubscribe julia --project -O3 --check-bounds=no moment_kinetics/test/runtests.jl --ci --debug 1 - ./mpiexecjl -np 4 --oversubscribe julia --project -O3 --check-bounds=no moment_kinetics/test/runtests.jl --ci --debug 1 - ./mpiexecjl -np 2 --oversubscribe julia --project -O3 --check-bounds=no moment_kinetics/test/runtests.jl --ci --debug 1 --long - # Note: MPI.jl's default implementation is mpich, which has a similar option - # `--with-device=ch3:sock`, but that needs to be set when compiling mpich. + julia --project -e 'import Pkg; Pkg.add(["MPI", "HDF5"]); using MPI; using HDF5; println("plain check if HDF5 has parallel ", HDF5.has_parallel())' + # julia --project -O3 --check-bounds=no -e 'import Pkg; Pkg.add(["MPI", "MPIPreferences"]); using MPIPreferences; MPIPreferences.use_jll_binary("OpenMPI_jll")' + # julia --project -O3 --check-bounds=no -e 'using MPI; MPI.install_mpiexecjl(; destdir=".")' + # julia --project -O3 --check-bounds=no -e 'import Pkg; Pkg.add(["HDF5", "Random", "SpecialFunctions", "StatsBase", "Test"]); Pkg.develop(path="moment_kinetics/")' + # julia --project -O3 --check-bounds=no -e 'import Pkg; Pkg.precompile()' + # julia --project -O3 -e 'using MPI; using HDF5; println("check if HDF5 has parallel ", HDF5.has_parallel())' + # # Need to use openmpi so that we can use `--oversubscribe` to allow using more MPI ranks than physical cores + # ./mpiexecjl -np 3 --oversubscribe julia --project -O3 --check-bounds=no moment_kinetics/test/runtests.jl --ci --debug 1 + # ./mpiexecjl -np 4 --oversubscribe julia --project -O3 --check-bounds=no moment_kinetics/test/runtests.jl --ci --debug 1 + # ./mpiexecjl -np 2 --oversubscribe julia --project -O3 --check-bounds=no moment_kinetics/test/runtests.jl --ci --debug 1 --long + # # Note: MPI.jl's default implementation is mpich, which has a similar option + # # `--with-device=ch3:sock`, but that needs to be set when compiling mpich. shell: bash # macOS is slow at the moment, so only run one set of parallel tests