Skip to content

Commit

Permalink
Merge pull request #934 from CHIP-SPV/ci-upgrades-5
Browse files Browse the repository at this point in the history
Nightly Tests + HipFFT
  • Loading branch information
pvelesko authored Sep 23, 2024
2 parents 45c089e + 4467db7 commit 814e8f3
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 23 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/check-unit-tests-intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ concurrency:
cancel-in-progress: true

jobs:
cancel-nightly:
runs-on: ubuntu-latest
steps:
- name: Cancel Nightly Tests
uses: styfle/cancel-workflow-action@0.11.0
with:
workflow_id: nightly-tests.yml
all_but_latest: false

unit-tests-llvm-16-debug:
needs: cancel-nightly
runs-on: X64
steps:
- uses: actions/checkout@v3
Expand All @@ -23,6 +33,7 @@ jobs:
run: ./scripts/unit_tests.sh debug llvm-16
shell: bash
unit-tests-llvm-16-release:
needs: cancel-nightly
runs-on: X64
steps:
- uses: actions/checkout@v3
Expand All @@ -34,6 +45,7 @@ jobs:
run: ./scripts/unit_tests.sh release llvm-16
shell: bash
unit-tests-llvm-17-debug:
needs: cancel-nightly
runs-on: X64
steps:
- uses: actions/checkout@v3
Expand All @@ -45,6 +57,7 @@ jobs:
run: ./scripts/unit_tests.sh debug llvm-17
shell: bash
unit-tests-llvm-17-release:
needs: cancel-nightly
runs-on: X64
steps:
- uses: actions/checkout@v3
Expand All @@ -56,6 +69,7 @@ jobs:
run: ./scripts/unit_tests.sh release llvm-17
shell: bash
unit-tests-llvm-18-debug:
needs: cancel-nightly
runs-on: X64
steps:
- uses: actions/checkout@v3
Expand All @@ -67,6 +81,7 @@ jobs:
run: ./scripts/unit_tests.sh debug llvm-18
shell: bash
unit-tests-llvm-18-release:
needs: cancel-nightly
runs-on: X64
steps:
- uses: actions/checkout@v3
Expand All @@ -78,6 +93,7 @@ jobs:
run: ./scripts/unit_tests.sh release llvm-18
shell: bash
unit-tests-llvm-19-debug:
needs: cancel-nightly
runs-on: X64
steps:
- uses: actions/checkout@v3
Expand All @@ -89,6 +105,7 @@ jobs:
run: ./scripts/unit_tests.sh debug llvm-19
shell: bash
unit-tests-llvm-19-release:
needs: cancel-nightly
runs-on: X64
steps:
- uses: actions/checkout@v3
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/compile-and-cache-main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
name: Compile and Cache Main

on:
push:
branches:
- main
workflow_dispatch:

jobs:
cancel-nightly:
runs-on: ubuntu-latest
steps:
- name: Cancel Nightly Tests
uses: styfle/cancel-workflow-action@0.11.0
with:
workflow_id: nightly-tests.yml
all_but_latest: false

build:
needs: cancel-nightly
runs-on: [self-hosted, X64]
steps:
- name: Checkout repository
Expand All @@ -30,12 +42,4 @@ jobs:
- name: Build
shell: bash
run: |
./scripts/unit_tests.sh release llvm-19 --build-only
- name: Update nightly cache
uses: actions/cache@v3
with:
path: |
build
~/.cache/ccache
key: nightly-build-${{ github.sha }}
./scripts/unit_tests.sh release llvm-19 --build-only && cp -r build /space/chipStar/build
16 changes: 3 additions & 13 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Nightly Tests
name: Nightly Tests Intel GPUs

on:
schedule:
- cron: '*/5 * * * *' # Run every 5 minutes
- cron: '* * * * *'
workflow_dispatch: # Allows manual triggering

concurrency:
Expand All @@ -19,17 +19,7 @@ jobs:
fetch-depth: 0
submodules: 'recursive'

- name: Restore nightly cache
uses: actions/cache@v3
with:
path: |
build
~/.cache/ccache
key: nightly-build-${{ github.sha }}
restore-keys: |
nightly-build-
- name: Run Intel GPU Unit Tests
shell: bash
run: |
./scripts/unit_tests.sh release llvm-19 --skip-build
cp -r /space/chipStar/build ./ && ./scripts/unit_tests.sh release llvm-19 --skip-build --num-tries 10
10 changes: 10 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ on:
branches: [ main ]

jobs:
cancel-nightly:
runs-on: ubuntu-latest
steps:
- name: Cancel Nightly Tests
uses: styfle/cancel-workflow-action@0.11.0
with:
workflow_id: nightly-tests.yml
all_but_latest: false

docker:
needs: cancel-nightly
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion scripts/unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ else
if [ "$host" = "salami" ]; then
CHIP_OPTIONS="-DCHIP_MALI_GPU_WORKAROUNDS=ON -DCHIP_SKIP_TESTS_WITH_DOUBLES=ON"
else
CHIP_OPTIONS="-DCHIP_BUILD_HIPBLAS=ON"
CHIP_OPTIONS="-DCHIP_BUILD_HIPBLAS=ON -DCHIP_BUILD_HIPFFT=ON"
fi
# Build the project
echo "Building project..."
Expand Down

0 comments on commit 814e8f3

Please sign in to comment.