Apply a mem reg shutdown patch to the libfabric code for CI testing #408
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-cpu: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/gridtools/gridtools-base:gcc-9-ucx-mpi | |
| steps: | |
| - name: install libfabric | |
| run: | | |
| apt update | |
| git clone https://github.com/ofiwg/libfabric | |
| cd libfabric | |
| ./autogen.sh | |
| ./configure --enable-debug --enable-tcp=yes --enable-lnx=no --enable-rxm=yes --enable-shm=yes --enable-cxi=no --enable-efa=no --enable-mrail=no --enable-opx=no --enable-psm2=no --enable-sm2=no --enable-psm3=no --enable-rxd=no --enable-sockets=no --enable-ucx=no --enable-udp=no --enable-usnic=no --enable-verbs=no --enable-xpmem=no | |
| make -j install | |
| # apt-get -y install libfabric-dev | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Configure | |
| run: | | |
| echo "WORKFLOW" | |
| export SHLVL=1 | |
| env | |
| ulimit -a | |
| ipcs -lm | |
| df | |
| cat /proc/cpuinfo | |
| mkdir -p build && cd build | |
| cmake \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DOOMPH_GIT_SUBMODULE=OFF \ | |
| -DOOMPH_USE_BUNDLED_LIBS=ON \ | |
| -DOOMPH_WITH_TESTING=ON \ | |
| -DOOMPH_WITH_BENCHMARKS=ON \ | |
| -DOOMPH_BENCHMARKS_MT=ON \ | |
| -DOOMPH_WITH_MPI=ON \ | |
| -DOOMPH_WITH_UCX=ON \ | |
| -DOOMPH_UCX_USE_SPIN_LOCK=ON \ | |
| -DUCX_DIR=/opt/ucx \ | |
| -DOOMPH_WITH_LIBFABRIC=ON \ | |
| -DOOMPH_LIBFABRIC_PROVIDER=tcp \ | |
| -DOOMPH_LIBFABRIC_V1_API=ON \ | |
| -DOOMPH_BUILD_FORTRAN=ON \ | |
| -DMPIEXEC_PREFLAGS=--oversubscribe \ | |
| .. | |
| - name: Build | |
| run: cmake --build build --parallel 2 | |
| - name: Execute tests | |
| run: cd build && export SHLVL=1 && export OMPI_ALLOW_RUN_AS_ROOT=1 && export | |
| OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 && export CTEST_OUTPUT_ON_FAILURE=1 | |
| && env && ctest | |
| build-gpu-hip: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/gridtools/gridtools-base:gcc-9-ucx-mpi-atlas-parmetis-hip | |
| steps: | |
| - name: install libfabric | |
| run: | | |
| apt update | |
| apt-get -y install libfabric-dev | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Configure | |
| run: | | |
| echo "WORKFLOW" | |
| export SHLVL=1 | |
| env | |
| ulimit -a | |
| ipcs -lm | |
| df | |
| cat /proc/cpuinfo | |
| mkdir -p build && cd build | |
| CXX=/opt/rocm/llvm/bin/clang++ cmake \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DOOMPH_GIT_SUBMODULE=OFF \ | |
| -DOOMPH_USE_BUNDLED_LIBS=ON \ | |
| -DHWMALLOC_ENABLE_DEVICE=ON \ | |
| -DHWMALLOC_DEVICE_RUNTIME=hip \ | |
| -DOOMPH_WITH_TESTING=ON \ | |
| -DOOMPH_WITH_BENCHMARKS=ON \ | |
| -DOOMPH_BENCHMARKS_MT=ON \ | |
| -DOOMPH_WITH_MPI=ON \ | |
| -DOOMPH_WITH_UCX=ON \ | |
| -DOOMPH_UCX_USE_SPIN_LOCK=ON \ | |
| -DUCX_DIR=/opt/ucx \ | |
| -DOOMPH_WITH_LIBFABRIC=ON \ | |
| -DOOMPH_LIBFABRIC_PROVIDER=tcp \ | |
| -DOOMPH_LIBFABRIC_V1_API=ON \ | |
| -DOOMPH_BUILD_FORTRAN=ON \ | |
| -DMPIEXEC_PREFLAGS=--oversubscribe \ | |
| .. | |
| - name: Build | |
| run: cmake --build build --parallel 2 | |
| build-gpu-cuda: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/gridtools/gridtools-base:gcc-9-ucx-mpi-atlas-parmetis-cuda-11 | |
| steps: | |
| - name: install libfabric | |
| run: | | |
| apt update | |
| apt-get -y install libfabric-dev | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Configure | |
| run: | | |
| echo "WORKFLOW" | |
| export SHLVL=1 | |
| env | |
| ulimit -a | |
| ipcs -lm | |
| df | |
| cat /proc/cpuinfo | |
| mkdir -p build && cd build | |
| cmake \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DOOMPH_GIT_SUBMODULE=OFF \ | |
| -DOOMPH_USE_BUNDLED_LIBS=ON \ | |
| -DHWMALLOC_ENABLE_DEVICE=ON \ | |
| -DHWMALLOC_DEVICE_RUNTIME=cuda \ | |
| -DOOMPH_WITH_TESTING=ON \ | |
| -DOOMPH_WITH_BENCHMARKS=ON \ | |
| -DOOMPH_BENCHMARKS_MT=ON \ | |
| -DOOMPH_WITH_MPI=ON \ | |
| -DOOMPH_WITH_UCX=ON \ | |
| -DOOMPH_UCX_USE_SPIN_LOCK=ON \ | |
| -DUCX_DIR=/opt/ucx \ | |
| -DOOMPH_WITH_LIBFABRIC=ON \ | |
| -DOOMPH_LIBFABRIC_PROVIDER=tcp \ | |
| -DOOMPH_LIBFABRIC_V1_API=ON \ | |
| -DOOMPH_BUILD_FORTRAN=ON \ | |
| -DMPIEXEC_PREFLAGS=--oversubscribe \ | |
| .. | |
| - name: Build | |
| run: cmake --build build --parallel 2 |