Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Re-enable Exa.TrkX builds #3431

Merged
merged 8 commits into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 88 additions & 86 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,94 +55,96 @@ clang_tidy:
# Generate an html report
- codereport clang-tidy/clang-tidy.json clang-tidy/html

# build_exatrkx_cpu:
# stage: build
# image: ghcr.io/acts-project/ubuntu2204_exatrkx:52
# tags:
# - large
build_exatrkx_cpu:
stage: build
image: ghcr.io/acts-project/ubuntu2204_exatrkx:52
tags:
- large

# cache:
# key: ccache-exatrkx-cpu-$CI_COMMIT_REF_SLUG
# paths:
# - ${CI_PROJECT_DIR}/ccache
cache:
key: ccache-exatrkx-cpu-$CI_COMMIT_REF_SLUG
paths:
- ${CI_PROJECT_DIR}/ccache

# script:
# - export PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
# - export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:$PATH
# - echo $PATH
# - git clone $CLONE_URL src
# - cd src
# - git checkout $HEAD_SHA
# - cd ..
# - mkdir build
# # Here we only do a minimal build without examples to save ressources
# - >
# cmake -B build -S src
# -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
# -GNinja
# -DCMAKE_BUILD_TYPE=Release
# -DCMAKE_CXX_FLAGS=-w
# -DACTS_BUILD_PLUGIN_EXATRKX=ON
# -DACTS_BUILD_EXAMPLES_EXATRKX=OFF
# -DACTS_BUILD_UNITTESTS=OFF
# -DACTS_EXATRKX_ENABLE_TORCH=ON
# -DACTS_EXATRKX_ENABLE_ONNX=OFF
# -DACTS_EXATRKX_ENABLE_CUDA=OFF
# -DACTS_BUILD_EXAMPLES_PYTHON_BINDINGS=OFF
# -DACTS_ENABLE_LOG_FAILURE_THRESHOLD=ON

# - ccache -z
# - cmake --build build -- -j2
# - ccache -s

# build_exatrkx:
# stage: build
# image: ghcr.io/acts-project/ubuntu2204_exatrkx:52
# tags:
# - large
#
# cache:
# key: ccache-exatrkx-$CI_COMMIT_REF_SLUG
# paths:
# - ${CI_PROJECT_DIR}/ccache
#
# artifacts:
# paths:
# - build/
# exclude:
# - build/**/*.o
# - build/bin/ActsIntegrationTest*
# expire_in: 6 hours
#
# script:
# - export PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
# - export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:$PATH
# - echo $PATH
# - git clone $CLONE_URL src
# - cd src
# - git checkout $HEAD_SHA
# - cd ..
# - mkdir build
# - >
# cmake -B build -S src
# -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
# -GNinja
# -DCMAKE_BUILD_TYPE=Release
# -DCMAKE_CXX_FLAGS=-w
# -DCMAKE_CUDA_FLAGS=-w
# -DCMAKE_CUDA_ARCHITECTURES="75;86"
# -DACTS_BUILD_PLUGIN_EXATRKX=ON
# -DACTS_BUILD_EXAMPLES_EXATRKX=ON
# -DACTS_BUILD_UNITTESTS=ON
# -DACTS_EXATRKX_ENABLE_TORCH=ON
# -DACTS_EXATRKX_ENABLE_ONNX=ON
# -DACTS_EXATRKX_ENABLE_CUDA=ON
# -DACTS_BUILD_EXAMPLES_PYTHON_BINDINGS=ON
# -DACTS_ENABLE_LOG_FAILURE_THRESHOLD=ON
#
# - ccache -z
# - cmake --build build -- -j2
# - ccache -s
script:
- export PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
- export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:$PATH
- export TORCH_CUDA_ARCH_LIST="8.0 8.6 8.9 9.0"
benjaminhuth marked this conversation as resolved.
Show resolved Hide resolved
- echo $PATH
- git clone $CLONE_URL src
- cd src
- git checkout $HEAD_SHA
- cd ..
- mkdir build
# Here we only do a minimal build without examples to save ressources
- >
cmake -B build -S src
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-w
-DACTS_BUILD_PLUGIN_EXATRKX=ON
-DACTS_BUILD_EXAMPLES_EXATRKX=OFF
-DACTS_BUILD_UNITTESTS=OFF
-DACTS_EXATRKX_ENABLE_TORCH=ON
-DACTS_EXATRKX_ENABLE_ONNX=OFF
-DACTS_EXATRKX_ENABLE_CUDA=OFF
-DACTS_BUILD_EXAMPLES_PYTHON_BINDINGS=OFF
-DACTS_ENABLE_LOG_FAILURE_THRESHOLD=ON

- ccache -z
- cmake --build build -- -j2
- ccache -s

build_exatrkx:
stage: build
image: ghcr.io/acts-project/ubuntu2204_exatrkx:52
tags:
- large

cache:
key: ccache-exatrkx-$CI_COMMIT_REF_SLUG
paths:
- ${CI_PROJECT_DIR}/ccache

artifacts:
paths:
- build/
exclude:
- build/**/*.o
- build/bin/ActsIntegrationTest*
expire_in: 6 hours

script:
- export PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
- export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:$PATH
- export TORCH_CUDA_ARCH_LIST="8.0 8.6 8.9 9.0"
- echo $PATH
- git clone $CLONE_URL src
- cd src
- git checkout $HEAD_SHA
- cd ..
- mkdir build
- >
cmake -B build -S src
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-w
-DCMAKE_CUDA_FLAGS=-w
-DCMAKE_CUDA_ARCHITECTURES="75;86"
-DACTS_BUILD_PLUGIN_EXATRKX=ON
-DACTS_BUILD_EXAMPLES_EXATRKX=ON
-DACTS_BUILD_UNITTESTS=ON
-DACTS_EXATRKX_ENABLE_TORCH=ON
-DACTS_EXATRKX_ENABLE_ONNX=OFF
-DACTS_EXATRKX_ENABLE_CUDA=ON
benjaminhuth marked this conversation as resolved.
Show resolved Hide resolved
-DACTS_BUILD_EXAMPLES_PYTHON_BINDINGS=ON
-DACTS_ENABLE_LOG_FAILURE_THRESHOLD=ON

- ccache -z
- cmake --build build -- -j2
- ccache -s

# test_exatrkx_unittests:
# stage: test
Expand Down
Loading