Skip to content

Commit

Permalink
check HDF5 without moment kinetics
Browse files Browse the repository at this point in the history
  • Loading branch information
johnomotani committed Oct 8, 2024
1 parent 2e70da1 commit fd5076c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/parallel_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd5076c

Please sign in to comment.