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

[TEST] test gitlab cache #784

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
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
17 changes: 17 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Benchmark

on:
push:
pull_request: # Delete this line later
branches:
- main
jobs:
detray_benchmark_job:
runs-on: ubuntu-latest
steps:
- run: >
curl -X POST --fail
-F token=${{ secrets.DETRAY_BENCHMARK_TRIGGER_TOKEN }}
-F ref=master
--form variables[SOURCE_SHA]="${{ github.sha }}"
https://gitlab.cern.ch/api/v4/projects/190570/trigger/pipeline
165 changes: 0 additions & 165 deletions .github/workflows/builds.yml

This file was deleted.

80 changes: 8 additions & 72 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,81 +6,17 @@

stages:
- build
- test


build_cuda:
tags: [docker]
stage: build
image: ghcr.io/acts-project/ubuntu2204_cuda:56
artifacts:
paths:
- build
script:
- git clone $CLONE_URL src
- git -C src checkout $HEAD_SHA
- >
cmake --preset cuda -S src -B build
-DCMAKE_BUILD_TYPE=Release
-DBUILD_TESTING=ON
-DDETRAY_BUILD_TESTING=ON
-DDETRAY_FAIL_ON_WARNINGS=ON
- cmake --build build


test_cuda:
variables:
DETRAY_DATA_DIRECTORY: src/data/
DETRAY_BFIELD_FILE: $CI_PROJECT_DIR/src/data/odd-bfield_v0_9_0.cvf
stage: test
tags: [docker-gpu-nvidia]
image: ghcr.io/acts-project/ubuntu2204_cuda:56
needs:
- build_cuda
script:
- git clone $CLONE_URL src
- git -C src checkout $HEAD_SHA
- src/data/detray_data_get_files.sh
- cd build
- nvidia-smi
- ctest --output-on-failure -R ".*cuda.*"
- find bin -type f -name "*cuda" -not -name "*text*" -exec {} \;


build_sycl:
tags: [docker]
stage: build
image: "ghcr.io/acts-project/ubuntu2404_oneapi:56"
artifacts:
paths:
- build
script:
- git clone $CLONE_URL src
- git -C src checkout $HEAD_SHA
- source src/.github/ci_setup.sh SYCL
- >
cmake --preset sycl -S src -B build
-DCMAKE_BUILD_TYPE=Release
-DBUILD_TESTING=ON
-DDETRAY_BUILD_TESTING=ON
-DDETRAY_FAIL_ON_WARNINGS=ON
- cmake --build build


test_sycl:
stage: test
tags: [docker-gpu-nvidia]
image: "ghcr.io/acts-project/ubuntu2404_oneapi:56"
needs:
- build_sycl
variables:
ONEAPI_DEVICE_SELECTOR: "*:cpu"
script:
- git clone $CLONE_URL src
- git -C src checkout $HEAD_SHA
- source src/.github/ci_setup.sh SYCL
- cd build
- nvidia-smi
- sycl-ls
- ctest --output-on-failure -R ".*sycl.*"
- find bin -type f -name "*sycl" -not -name "*text*" -exec {} \;
- git clone ssh://[email protected]:7999/beyeo/continuous_benchmark.git
- cd ./continuous_benchmark
- echo "Hello World!" >> hello.txt
- git config --global user.email "[email protected]"
- git config --global user.name "Beomki Yeo"
- git add hello.txt
- git commit -m "Test"
- git push -u origin master
Loading