Re-enable GPU CI #2448
Workflow file for this run
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
| # Copyright 2022-2023 | |
| # | |
| # This file is part of HiPACE++. | |
| # | |
| # Authors: Axel Huebl, Maxence Thevenet | |
| # License: BSD-3-Clause-LBNL | |
| name: 🐧 local CUDA | |
| on: | |
| push: | |
| branches: | |
| - development | |
| pull_request: | |
| branches: | |
| - development | |
| concurrency: | |
| group: ${{ github.ref }}-${{ github.head_ref }}-cudaLocal | |
| cancel-in-progress: true | |
| jobs: | |
| build_nvcc: | |
| name: local V100 NVCC 11.8 DP | |
| runs-on: desy-gpu-runner | |
| if: github.repository_owner == 'Hi-PACE' | |
| env: | |
| CXXFLAGS: "-Werror" | |
| container: | |
| image: nvcr.io/nvidia/cuda:11.8.0-devel-ubuntu22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| run: | | |
| # Print OS version | |
| cat /etc/*-release | |
| # Print CPU information | |
| lscpu | |
| apt-get -qqq update -y --no-install-recommends | |
| apt-get install -y --no-install-recommends \ | |
| sudo \ | |
| git \ | |
| libopenmpi-dev \ | |
| openmpi-bin \ | |
| libhdf5-openmpi-dev \ | |
| python3.10-venv \ | |
| python3-pip | |
| python3 -m pip install --upgrade pip --user | |
| python3 -m pip install --upgrade \ | |
| pipx matplotlib numpy scipy openpmd-viewer openpmd-api --user | |
| python3 -m pip install git+https://github.com/LASY-org/lasy.git@development | |
| python3 -m pipx install cmake | |
| - name: Compile | |
| run: | | |
| export PATH="$HOME/.local/bin:$PATH" | |
| cmake -S . -B build \ | |
| -DCMAKE_VERBOSE_MAKEFILE=ON \ | |
| -DAMReX_CUDA_ARCH=7.0 \ | |
| -DHiPACE_COMPUTE=CUDA \ | |
| -DHiPACE_PRECISION=DOUBLE \ | |
| -DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \ | |
| -DAMReX_CUDA_ERROR_CAPTURE_THIS=ON | |
| cmake --build build -j 30 | |
| - name: Run Tests | |
| run: | | |
| export PATH="$HOME/.local/bin:$PATH" | |
| export OMPI_ALLOW_RUN_AS_ROOT=1 | |
| export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 | |
| ctest --test-dir build --output-on-failure |