Skip to content

Merge pull request #602 from stephenswat/feat/concepts #74

Merge pull request #602 from stephenswat/feat/concepts

Merge pull request #602 from stephenswat/feat/concepts #74

Workflow file for this run

# TRACCC library, part of the ACTS project (R&D line)
#
# (c) 2021-2024 CERN for the benefit of the ACTS project
#
# Mozilla Public License Version 2.0
name: Builds
on:
push:
pull_request:
branches:
- main
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
builds:
name: ${{ matrix.platform.name }}-${{ matrix.build }}
runs-on: ubuntu-latest
container: ${{ matrix.platform.container }}
strategy:
matrix:
platform:
- name: CPU
container: ghcr.io/acts-project/ubuntu2004:v30
cxx_standard: "17"
options:
run_tests: true
- name: CPU
container: ghcr.io/acts-project/ubuntu2004:v30
cxx_standard: "17"
options: -DTRACCC_USE_ROOT=FALSE
run_tests: true
- name: CPU
container: ghcr.io/acts-project/ubuntu2404:48
cxx_standard: "20"
options: -DTRACCC_USE_ROOT=FALSE -DTRACCC_ENFORCE_CONCEPTS=TRUE
run_tests: true
- name: HIP
container: ghcr.io/acts-project/ubuntu2004_rocm:47
cxx_standard: "17"
options: -DTRACCC_BUILD_HIP=TRUE -DTRACCC_SETUP_ROCTHRUST=TRUE
run_tests: false
- name: CUDA
container: ghcr.io/acts-project/ubuntu2004_cuda:47
cxx_standard: "17"
options: -DTRACCC_BUILD_CUDA=TRUE -DTRACCC_ENABLE_NVTX_PROFILING=TRUE
run_tests: false
- name: CUDA
container: ghcr.io/acts-project/ubuntu2204_cuda:48
cxx_standard: "20"
options: -DTRACCC_BUILD_CUDA=TRUE -DTRACCC_USE_ROOT=FALSE -DTRACCC_ENFORCE_CONCEPTS=TRUE -DCMAKE_CUDA_FLAGS="-std=c++20"
run_tests: false
- name: SYCL
container: ghcr.io/acts-project/ubuntu2004_oneapi:47
cxx_standard: "17"
options: -DTRACCC_BUILD_SYCL=TRUE
run_tests: true
- name: KOKKOS
container: ghcr.io/acts-project/ubuntu2004:v30
cxx_standard: "17"
options: -DTRACCC_BUILD_KOKKOS=TRUE
run_tests: false
- name: ALPAKA
container: ghcr.io/acts-project/ubuntu2204:v33
cxx_standard: "17"
options: -DTRACCC_BUILD_ALPAKA=TRUE
run_tests: false
build:
- Release
- Debug
include:
- platform:
name: "SYCL"
container: ghcr.io/acts-project/ubuntu2004_cuda_oneapi:47
cxx_standard: "17"
options: -DTRACCC_BUILD_SYCL=TRUE -DTRACCC_BUILD_CUDA=FALSE -DVECMEM_BUILD_CUDA_LIBRARY=FALSE
build: Release
- platform:
name: "SYCL"
container: ghcr.io/acts-project/ubuntu2004_rocm_oneapi:47
cxx_standard: "17"
options: -DTRACCC_BUILD_SYCL=TRUE -DVECMEM_BUILD_HIP_LIBRARY=FALSE
build: Release
# Use BASH as the shell from the images.
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Configure
run: |
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.platform.name }}
cmake \
-DCMAKE_BUILD_TYPE=${{ matrix.build }} \
-DCMAKE_CXX_STANDARD=${{ matrix.platform.cxx_standard }} \
-DCMAKE_CUDA_STANDARD=${{ matrix.platform.cxx_standard }} \
-DCMAKE_HIP_STANDARD=${{ matrix.platform.cxx_standard }} \
-DCMAKE_SYCL_STANDARD=${{ matrix.platform.cxx_standard }} \
${{ matrix.platform.options }} \
-DTRACCC_FAIL_ON_WARNINGS=TRUE \
-S ${GITHUB_WORKSPACE} \
-B build
- name: Build
run: |
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.platform.name }}
cmake --build build
- name: Download data files
if: "matrix.platform.run_tests"
run: data/traccc_data_get_files.sh
- name: Test
if: "matrix.platform.run_tests"
run: |
cd build
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.platform.name }}
ctest --output-on-failure
- name: FP64 Compliance
if: "matrix.platform.name == 'CUDA' && matrix.build == 'Debug'"
continue-on-error: true
run: ${GITHUB_WORKSPACE}/.github/find_f64_ptx.py --source ${GITHUB_WORKSPACE} --build build $(find build -name "*.ptx")