Skip to content

Commit 814e8f3

Browse files
authored
Merge pull request #934 from CHIP-SPV/ci-upgrades-5
Nightly Tests + HipFFT
2 parents 45c089e + 4467db7 commit 814e8f3

5 files changed

Lines changed: 44 additions & 23 deletions

File tree

.github/workflows/check-unit-tests-intel.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
jobs:
14+
cancel-nightly:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Cancel Nightly Tests
18+
uses: styfle/cancel-workflow-action@0.11.0
19+
with:
20+
workflow_id: nightly-tests.yml
21+
all_but_latest: false
22+
1423
unit-tests-llvm-16-debug:
24+
needs: cancel-nightly
1525
runs-on: X64
1626
steps:
1727
- uses: actions/checkout@v3
@@ -23,6 +33,7 @@ jobs:
2333
run: ./scripts/unit_tests.sh debug llvm-16
2434
shell: bash
2535
unit-tests-llvm-16-release:
36+
needs: cancel-nightly
2637
runs-on: X64
2738
steps:
2839
- uses: actions/checkout@v3
@@ -34,6 +45,7 @@ jobs:
3445
run: ./scripts/unit_tests.sh release llvm-16
3546
shell: bash
3647
unit-tests-llvm-17-debug:
48+
needs: cancel-nightly
3749
runs-on: X64
3850
steps:
3951
- uses: actions/checkout@v3
@@ -45,6 +57,7 @@ jobs:
4557
run: ./scripts/unit_tests.sh debug llvm-17
4658
shell: bash
4759
unit-tests-llvm-17-release:
60+
needs: cancel-nightly
4861
runs-on: X64
4962
steps:
5063
- uses: actions/checkout@v3
@@ -56,6 +69,7 @@ jobs:
5669
run: ./scripts/unit_tests.sh release llvm-17
5770
shell: bash
5871
unit-tests-llvm-18-debug:
72+
needs: cancel-nightly
5973
runs-on: X64
6074
steps:
6175
- uses: actions/checkout@v3
@@ -67,6 +81,7 @@ jobs:
6781
run: ./scripts/unit_tests.sh debug llvm-18
6882
shell: bash
6983
unit-tests-llvm-18-release:
84+
needs: cancel-nightly
7085
runs-on: X64
7186
steps:
7287
- uses: actions/checkout@v3
@@ -78,6 +93,7 @@ jobs:
7893
run: ./scripts/unit_tests.sh release llvm-18
7994
shell: bash
8095
unit-tests-llvm-19-debug:
96+
needs: cancel-nightly
8197
runs-on: X64
8298
steps:
8399
- uses: actions/checkout@v3
@@ -89,6 +105,7 @@ jobs:
89105
run: ./scripts/unit_tests.sh debug llvm-19
90106
shell: bash
91107
unit-tests-llvm-19-release:
108+
needs: cancel-nightly
92109
runs-on: X64
93110
steps:
94111
- uses: actions/checkout@v3

.github/workflows/compile-and-cache-main.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
1+
name: Compile and Cache Main
2+
13
on:
24
push:
35
branches:
46
- main
57
workflow_dispatch:
68

79
jobs:
10+
cancel-nightly:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Cancel Nightly Tests
14+
uses: styfle/cancel-workflow-action@0.11.0
15+
with:
16+
workflow_id: nightly-tests.yml
17+
all_but_latest: false
18+
819
build:
20+
needs: cancel-nightly
921
runs-on: [self-hosted, X64]
1022
steps:
1123
- name: Checkout repository
@@ -30,12 +42,4 @@ jobs:
3042
- name: Build
3143
shell: bash
3244
run: |
33-
./scripts/unit_tests.sh release llvm-19 --build-only
34-
35-
- name: Update nightly cache
36-
uses: actions/cache@v3
37-
with:
38-
path: |
39-
build
40-
~/.cache/ccache
41-
key: nightly-build-${{ github.sha }}
45+
./scripts/unit_tests.sh release llvm-19 --build-only && cp -r build /space/chipStar/build
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Nightly Tests
1+
name: Nightly Tests Intel GPUs
22

33
on:
44
schedule:
5-
- cron: '*/5 * * * *' # Run every 5 minutes
5+
- cron: '* * * * *'
66
workflow_dispatch: # Allows manual triggering
77

88
concurrency:
@@ -19,17 +19,7 @@ jobs:
1919
fetch-depth: 0
2020
submodules: 'recursive'
2121

22-
- name: Restore nightly cache
23-
uses: actions/cache@v3
24-
with:
25-
path: |
26-
build
27-
~/.cache/ccache
28-
key: nightly-build-${{ github.sha }}
29-
restore-keys: |
30-
nightly-build-
31-
3222
- name: Run Intel GPU Unit Tests
3323
shell: bash
3424
run: |
35-
./scripts/unit_tests.sh release llvm-19 --skip-build
25+
cp -r /space/chipStar/build ./ && ./scripts/unit_tests.sh release llvm-19 --skip-build --num-tries 10

.github/workflows/publish-docker.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@ on:
77
branches: [ main ]
88

99
jobs:
10+
cancel-nightly:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Cancel Nightly Tests
14+
uses: styfle/cancel-workflow-action@0.11.0
15+
with:
16+
workflow_id: nightly-tests.yml
17+
all_but_latest: false
18+
1019
docker:
20+
needs: cancel-nightly
1121
runs-on: [self-hosted, Linux, X64]
1222
steps:
1323
- uses: actions/checkout@v3

scripts/unit_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ else
142142
if [ "$host" = "salami" ]; then
143143
CHIP_OPTIONS="-DCHIP_MALI_GPU_WORKAROUNDS=ON -DCHIP_SKIP_TESTS_WITH_DOUBLES=ON"
144144
else
145-
CHIP_OPTIONS="-DCHIP_BUILD_HIPBLAS=ON"
145+
CHIP_OPTIONS="-DCHIP_BUILD_HIPBLAS=ON -DCHIP_BUILD_HIPFFT=ON"
146146
fi
147147
# Build the project
148148
echo "Building project..."

0 commit comments

Comments
 (0)