Skip to content

Commit 91be016

Browse files
committed
Update gitlab ci
1 parent 5556482 commit 91be016

File tree

2 files changed

+59
-25
lines changed

2 files changed

+59
-25
lines changed

.github/workflows/hpsf-gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
RESPONSE=$(curl -s -X POST \
3131
-F token=${{ secrets.HPSF_GITLAB_TRIGGER_TOKEN }} \
3232
-F ref=development \
33-
-F "variables[PR_NUMBER]=$PR_NUMBER" \
33+
-F "variables[GITHUB_PR_NUMBER]=$PR_NUMBER" \
3434
"https://gitlab.spack.io/api/v4/projects/${{ secrets.HPSF_GITLAB_PROJECT_ID }}/trigger/pipeline")
3535
3636
echo "GitLab response: $RESPONSE"

.gitlab/hpsf-gitlab-ci.yml

Lines changed: 58 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
1+
stages:
2+
- prepare
3+
- test
4+
5+
fetch-github-pr:
6+
stage: prepare
7+
tags: [hpsf]
8+
image: ubuntu:24.04
9+
variables:
10+
GIT_STRATEGY: fetch
11+
rules:
12+
- if: '$GITHUB_PR_NUMBER' # GITHUB_PR_NUMBER is provided by a GitHub Action
13+
when: always
14+
- when: never # For non-github-pr job, the script part will be skipped.
15+
script:
16+
- apt-get update && apt-get install -y git
17+
- echo "GITHUB_PR_NUMBER=$GITHUB_PR_NUMBER"
18+
- MERGE_REF="refs/pull/${GITHUB_PR_NUMBER}/merge"
19+
- echo "Fetching GitHub PR merge ref $MERGE_REF"
20+
- git fetch origin +${MERGE_REF}:refs/remotes/origin/pr-${GITHUB_PR_NUMBER}
21+
- git checkout pr-${GITHUB_PR_NUMBER}
22+
123
Nvidia-H100-single-precision:
224
stage: test
325
tags: [nvidia-h100]
426
image: nvcr.io/nvidia/cuda:12.8.0-devel-ubuntu24.04
27+
rules:
28+
- when: always
29+
dependencies:
30+
- fetch-github-pr
531
script:
632
- apt-get update && apt-get install -y cmake git python3 libopenmpi-dev openmpi-bin
733
- |
@@ -31,6 +57,10 @@ AMD-MI300A:
3157
stage: test
3258
tags: [amd-mi300]
3359
image: rocm/dev-ubuntu-24.04:6.4.3-complete
60+
rules:
61+
- when: always
62+
dependencies:
63+
- fetch-github-pr
3464
script:
3565
- apt-get update && apt-get install -y cmake git libopenmpi-dev openmpi-bin
3666
- export ROCM_PATH=/opt/rocm-6.4.3
@@ -58,27 +88,31 @@ AMD-MI300A:
5888
- export AMREX_THE_ARENA_INIT_SIZE=1e9
5989
- ctest -j 2 --test-dir build --output-on-failure
6090

61-
Intel-PVC:
62-
stage: test
63-
tags: [intel-data-center-max-1100]
64-
image: intel/oneapi-basekit:2025.3.0-0-devel-ubuntu24.04
65-
script:
66-
- apt-get update && apt-get install -y git
67-
- sycl-ls
68-
- export ONEAPI_DEVICE_SELECTOR=level_zero:gpu
69-
- |
70-
cmake -S . -B build \
71-
-DCMAKE_VERBOSE_MAKEFILE=ON \
72-
-DAMReX_MPI=OFF \
73-
-DAMReX_SPACEDIM="1;2;3" \
74-
-DAMReX_FFT=ON \
75-
-DAMReX_EB=ON \
76-
-DAMReX_ENABLE_TESTS=ON \
77-
-DAMReX_FORTRAN=OFF \
78-
-DAMReX_GPU_BACKEND=SYCL \
79-
-DCMAKE_C_COMPILER=$(which icx) \
80-
-DCMAKE_CXX_COMPILER=$(which icpx) \
81-
-DAMReX_PARALLEL_LINK_JOBS=8
82-
- cmake --build build -j 16
83-
- export AMREX_THE_ARENA_INIT_SIZE=1e9
84-
- ctest -j 4 --test-dir build --output-on-failure
91+
#Intel-PVC:
92+
# stage: test
93+
# tags: [intel-data-center-max-1100]
94+
# image: intel/oneapi-basekit:2025.3.0-0-devel-ubuntu24.04
95+
# rules:
96+
# - when: always
97+
# dependencies:
98+
# - fetch-github-pr
99+
# script:
100+
# - apt-get update && apt-get install -y git
101+
# - sycl-ls
102+
# - export ONEAPI_DEVICE_SELECTOR=level_zero:gpu
103+
# - |
104+
# cmake -S . -B build \
105+
# -DCMAKE_VERBOSE_MAKEFILE=ON \
106+
# -DAMReX_MPI=OFF \
107+
# -DAMReX_SPACEDIM="1;2;3" \
108+
# -DAMReX_FFT=ON \
109+
# -DAMReX_EB=ON \
110+
# -DAMReX_ENABLE_TESTS=ON \
111+
# -DAMReX_FORTRAN=OFF \
112+
# -DAMReX_GPU_BACKEND=SYCL \
113+
# -DCMAKE_C_COMPILER=$(which icx) \
114+
# -DCMAKE_CXX_COMPILER=$(which icpx) \
115+
# -DAMReX_PARALLEL_LINK_JOBS=8
116+
# - cmake --build build -j 16
117+
# - export AMREX_THE_ARENA_INIT_SIZE=1e9
118+
# - ctest -j 4 --test-dir build --output-on-failure

0 commit comments

Comments
 (0)