Skip to content

Commit

Permalink
Merge branch 'main' into feature/acts-examples-without-root
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminhuth authored Feb 14, 2025
2 parents 25c6da4 + e4606c6 commit 934dff9
Show file tree
Hide file tree
Showing 627 changed files with 15,259 additions and 10,081 deletions.
44 changes: 23 additions & 21 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
---
Checks: '-*, \
clang-analyzer-optin.cplusplus.UninitializedObject, \
cppcoreguidelines-init-variables, \
cppcoreguidelines-pro-type-member-init, \
google-readability-casting, \
modernize-concat-nested-namespaces, \
modernize-use-equals-default, \
modernize-use-default-member-init, \
modernize-use-nullptr, \
modernize-use-override, \
modernize-use-using, \
performance-for-range-copy, \
performance-move-const-arg, \
performance-unnecessary-value-param, \
readability-braces-around-statements, \
readability-container-size-empty, \
readability-implicit-bool-cast, \
readability-implicit-bool-conversion, \
readability-inconsistent-declaration-parameter-name, \
readability-named-parameter, \
readability-operators-representation'
Checks: >
-*,
clang-analyzer-optin.cplusplus.UninitializedObject,
cppcoreguidelines-init-variables,
cppcoreguidelines-pro-type-member-init,
google-readability-casting,
modernize-concat-nested-namespaces,
modernize-use-equals-default,
modernize-use-default-member-init,
modernize-use-nullptr,
modernize-use-override,
modernize-use-using,
performance-for-range-copy,
performance-move-const-arg,
performance-unnecessary-value-param,
readability-braces-around-statements,
readability-container-size-empty,
readability-implicit-bool-cast,
readability-implicit-bool-conversion,
readability-inconsistent-declaration-parameter-name,
readability-named-parameter,
readability-operators-representation,
readability-redundant-smartptr-get
HeaderFilterRegex: '.*(?<!nlohmann\/json)\.(hpp|cpp|ipp)$'
CheckOptions:
readability-operators-representation.BinaryOperators: '&&;&=;&;|;~;!;!=;||;|=;^;^='
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,11 @@ jobs:
include:
- image: ubuntu2204
std: 20
- image: ubuntu2204_clang
cxx: g++
- image: ubuntu2204
std: 20
container: ghcr.io/acts-project/${{ matrix.image }}:63
cxx: clang++
container: ghcr.io/acts-project/${{ matrix.image }}:71
env:
INSTALL_DIR: ${{ github.workspace }}/install
ACTS_LOG_FAILURE_THRESHOLD: WARNING
Expand Down Expand Up @@ -285,6 +287,7 @@ jobs:
ccache -z &&
cmake -B build -S .
--preset=github-ci
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
-DCMAKE_CXX_STANDARD=${{ matrix.std }}
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}"
-DPython_EXECUTABLE=$(which python3)
Expand Down
124 changes: 82 additions & 42 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,19 @@ variables:

DEPENDENCY_TAG: v5

.ccache_base:
cache:
- key: ccache-${CI_JOB_NAME}-${CCACHE_KEY_SUFFIX}-${CLONE_URL}_${HEAD_REF}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CCACHE_KEY_SUFFIX}-https://github.com/acts-project/acts.git-main
when: always
paths:
- ${CCACHE_DIR}


clang_tidy:
stage: build
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
tags:
- large
artifacts:
Expand Down Expand Up @@ -61,19 +71,14 @@ clang_tidy:

build_exatrkx_cpu:
stage: build
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
- large

cache:
key: ccache-${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}-${CCACHE_KEY_SUFFIX}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CI_DEFAULT_BRANCH}-${CCACHE_KEY_SUFFIX}
when: always
paths:
- ${CCACHE_DIR}
- !reference [.ccache_base, cache]

script:
- export PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
Expand All @@ -99,19 +104,14 @@ build_exatrkx_cpu:

build_exatrkx:
stage: build
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
- large

cache:
key: ccache-${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}-${CCACHE_KEY_SUFFIX}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CI_DEFAULT_BRANCH}-${CCACHE_KEY_SUFFIX}
when: always
paths:
- ${CCACHE_DIR}
- !reference [.ccache_base, cache]

artifacts:
paths:
Expand Down Expand Up @@ -146,7 +146,7 @@ test_exatrkx_unittests:
stage: test
needs:
- build_exatrkx
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
Expand All @@ -159,13 +159,13 @@ test_exatrkx_unittests:
- git checkout $HEAD_SHA
- source CI/dependencies.sh
- cd ..
- ctest --test-dir build -R ExaTrkX
- ctest --test-dir build -R "(ExaTrkX|ConnectedComponentsCuda)"

test_exatrkx_python:
stage: test
needs:
- build_exatrkx
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
Expand All @@ -186,19 +186,46 @@ test_exatrkx_python:
- pytest -rFsv -k torch --collect-only
- pytest -rFsv -k gpu-torch # For now only test torch GPU pipeline

build_gnn_tensorrt:
stage: build
image: ghcr.io/acts-project/ubuntu2404_tensorrt:74
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.$DEPENDENCY_TAG.tar.zst

cache:
- !reference [.ccache_base, cache]

tags:
- docker-gpu-nvidia

script:
- git clone $CLONE_URL src
- cd src
- git checkout $HEAD_SHA
- source CI/dependencies.sh
- cd ..
- mkdir build
- >
cmake -B build -S src
-DACTS_BUILD_PLUGIN_EXATRKX=ON
-DACTS_EXATRKX_ENABLE_TORCH=OFF
-DACTS_EXATRKX_ENABLE_CUDA=ON
-DACTS_EXATRKX_ENABLE_TENSORRT=ON
-DPython_EXECUTABLE=$(which python3)
-DCMAKE_CUDA_ARCHITECTURES="75;86"
- ccache -z
- cmake --build build -- -j6
- ccache -s


build_linux_ubuntu:
stage: build
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.$DEPENDENCY_TAG.tar.zst

cache:
key: ccache-${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}-${CCACHE_KEY_SUFFIX}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CI_DEFAULT_BRANCH}-${CCACHE_KEY_SUFFIX}
when: always
paths:
- ${CCACHE_DIR}
- !reference [.ccache_base, cache]

artifacts:
paths:
Expand Down Expand Up @@ -231,9 +258,29 @@ build_linux_ubuntu:
- cmake --build build -- -j6
- ccache -s

- ctest --test-dir build -j$(nproc)
- cmake --build build --target integrationtests

# Install main project
- cmake --install build

# Downstream configure
- >
cmake -B build-downstream -S src/Tests/DownstreamProject
-GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-Werror
-DCMAKE_PREFIX_PATH="${INSTALL_DIR}"
# Downstream build
- cmake --build build-downstream

# Downstream run
- ./build-downstream/bin/ShowActsVersion

linux_test_examples:
stage: test
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.$DEPENDENCY_TAG.tar.zst
needs: [build_linux_ubuntu]
Expand All @@ -257,7 +304,7 @@ linux_test_examples:

linux_physmon:
stage: test
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.$DEPENDENCY_TAG.tar.zst
needs: [build_linux_ubuntu]
Expand Down Expand Up @@ -299,16 +346,12 @@ linux_physmon:
.linux_ubuntu_extra:
variables:
INSTALL_DIR: ${CI_PROJECT_DIR}/install
CXX: g++

stage: build

cache:
key: ccache-${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}-${CCACHE_KEY_SUFFIX}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CI_DEFAULT_BRANCH}-${CCACHE_KEY_SUFFIX}
when: always
paths:
- ${CCACHE_DIR}
- !reference [.ccache_base, cache]

script:
- git clone $CLONE_URL src
Expand All @@ -326,6 +369,7 @@ linux_physmon:
--preset=gitlab-ci
-DPython_EXECUTABLE=$(which python3)
-DCMAKE_CXX_STANDARD=${CXXSTD}
-DCMAKE_CXX_COMPILER=${CXX}
- ccache -z
- cmake --build build -- -j6
Expand Down Expand Up @@ -357,22 +401,23 @@ linux_ubuntu_2204:
variables:
CXXSTD: 20
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
image: ghcr.io/acts-project/ubuntu2204:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204:71

linux_ubuntu_2204_clang:
extends: .linux_ubuntu_extra
variables:
CXX: clang++
CXXSTD: 20
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
image: ghcr.io/acts-project/ubuntu2204_clang:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204:71


######################
### LCG JOB MATRIX ###
######################

.lcg_base_job:
image: ghcr.io/acts-project/${OS}-base:63
image: registry.cern.ch/ghcr.io/acts-project/${OS}-base:63
stage: build
tags:
- cvmfs
Expand All @@ -384,12 +429,7 @@ linux_ubuntu_2204_clang:
SETUP:

cache:
key: ccache-${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}-${CCACHE_KEY_SUFFIX}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CI_DEFAULT_BRANCH}-${CCACHE_KEY_SUFFIX}
when: always
paths:
- ${CCACHE_DIR}
- !reference [.ccache_base, cache]

before_script:
- 'echo "LCG_VERSION: ${LCG_VERSION}"'
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ repos:
- id: end-of-file-fixer
exclude: \.(diff|patch)$
- id: check-yaml
exclude: \.gitlab-ci.yml$
- id: check-added-large-files


Expand Down Expand Up @@ -69,7 +70,7 @@ repos:
- id: type_t
name: type_t
language: system
entry: CI/check_type_t.py
entry: CI/check_type_t.py --fix
files: \.(cpp|hpp|ipp|cu|cuh)$

- repo: local
Expand Down
1 change: 1 addition & 0 deletions CI/clang_tidy/limits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ limits:
"readability-inconsistent-declaration-parameter-name": 0
"readability-named-parameter": 0
"readability-operators-representation": 0
"readability-redundant-smartptr-get": 0
Binary file modified CI/physmon/reference/simulation/particles_fatras_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/simulation/particles_geant4_hist.root
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13 changes: 4 additions & 9 deletions CI/physmon/workflows/physmon_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from acts.examples.simulation import (
addFatras,
addGeant4,
ParticleSelectorConfig,
addPythia8,
)

Expand Down Expand Up @@ -58,7 +57,7 @@
acts.PdgParticle.eElectron,
]
],
outputParticles="particles_input",
outputParticles="particles_generated",
outputVertices="vertices_input",
randomNumbers=rnd,
)
Expand All @@ -67,7 +66,7 @@
s.addWriter(
acts.examples.RootParticleWriter(
level=acts.logging.INFO,
inputParticles="particles_input",
inputParticles="particles_generated",
filePath=tp / "particles.root",
)
)
Expand All @@ -78,9 +77,7 @@
setup.field,
rnd,
enableInteractions=True,
preSelectParticles=None,
postSelectParticles=ParticleSelectorConfig(removeSecondaries=True),
inputParticles="particles_input",
inputParticles="particles_generated",
outputParticles="particles_fatras",
outputSimHits="simhits_fatras",
outputDirRoot=tp / "fatras",
Expand All @@ -92,12 +89,10 @@
setup.trackingGeometry,
setup.field,
rnd,
preSelectParticles=None,
postSelectParticles=ParticleSelectorConfig(removeSecondaries=True),
killVolume=setup.trackingGeometry.highestTrackingVolume,
killAfterTime=25 * u.ns,
killSecondaries=True,
inputParticles="particles_input",
inputParticles="particles_generated",
outputParticles="particles_geant4",
outputSimHits="simhits_geant4",
outputDirRoot=tp / "geant4",
Expand Down
Loading

0 comments on commit 934dff9

Please sign in to comment.