test parsing of IOTA lattice #156
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:cuda12-gcc | |
on: | |
workflow_dispatch: | |
inputs: | |
debug_cmake_enabled: | |
description: 'tmate before cmake' | |
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-12: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}} |