Merge pull request #238 from fnalacceleratormodeling/fix_build_errors #237
This file contains 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:cuda11-gcc | |
on: | |
workflow_dispatch: | |
inputs: | |
debug_cmake_enabled: | |
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required: false | |
default: false | |
push: | |
branches: [ devel3 ] | |
paths-ignore: | |
- 'wiki/**' | |
pull_request: | |
branches: [ devel3 ] | |
paths-ignore: | |
- 'wiki/**' | |
env: | |
BUILD_TYPE: RelWithDebInfo | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/fnalacceleratormodeling/synergia2-containers/cuda-11:main | |
steps: | |
- name: Cancel Previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
# Debug: checkpoint at which to open tmate session | |
- name: cuda11 pre CMake | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{github.event_name == 'workflow_dispatch' && github.event.inputs.debug_cmake_enabled }} | |
with: | |
sudo: false | |
- name: CMake | |
run: | | |
lscpu | |
. /opt/spack-environment/activate.sh | |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | |
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install \ | |
-DBUILD_PYTHON_BINDINGS=on -DPYTHON_EXECUTABLE=$(which python3) \ | |
-DENABLE_KOKKOS_BACKEND=CUDA \ | |
-DKokkos_ARCH_VOLTA70=ON \ | |
-DBUILD_FD_SPACE_CHARGE_SOLVER=ON \ | |
-DUSE_OPENPMD_IO=ON \ | |
-DUSE_EXTERNAL_KOKKOS=OFF -GNinja | |
- name: build | |
# build synergia2 | |
run: | | |
. /opt/spack-environment/activate.sh | |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 2 | |
- name: install | |
# install synergia2 | |
run: | | |
. /opt/spack-environment/activate.sh | |
cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} |