Skip to content

Commit

Permalink
[CI] Remove Buildkite logic from the repo (#993)
Browse files Browse the repository at this point in the history
We're now using Github Actions, and don't need to cross wires.
  • Loading branch information
rengolin authored Dec 5, 2024
1 parent 0434913 commit e9e3136
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 301 deletions.
84 changes: 15 additions & 69 deletions .github/workflows/tpp-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ on:
description: "Run on Emerald Rapids"
default: "1"
RUN_ZEN_BENCH:
description: "Run on Zen4"
default: "0"
RUN_ADL_BENCH:
description: "Run on Raptor Lake"
default: "0"
RUN_CLX_BENCH:
description: "Run on Coffee Lake"
description: "Run on Zen5"
default: "0"
push:
branches:
Expand Down Expand Up @@ -43,9 +37,9 @@ jobs:
- uses: actions/checkout@v4
- name: Emerald Rapids Base
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -b -p"
${{ env.SRUN }} --partition=emr --time=2:00:00 --constraint=\"notrb\" -- $CMD
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -b -p"
${{ env.SRUN }} --partition=emr --time=0:30:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-EMR-OMP:
runs-on: pcl-tiergarten
Expand All @@ -57,78 +51,30 @@ jobs:
- uses: actions/checkout@v4
- name: Emerald Rapids OpenMP
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -o"
${{ env.SRUN }} --partition=emr --time=2:00:00 --constraint=\"notrb\" -- $CMD
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -o"
${{ env.SRUN }} --partition=emr --time=0:30:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-ZEN-BASE:
runs-on: pcl-tiergarten
if: inputs.RUN_ZEN_BENCH == 1
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Zen4 Base
- name: Zen5 Base
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -b -p"
${{ env.SRUN }} --partition=zen4 --time=2:00:00 --constraint=\"notrb\" -- $CMD
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -b -p"
${{ env.SRUN }} --partition=zen5 --time=0:30:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-ZEN-OMP:
runs-on: pcl-tiergarten
if: inputs.RUN_ZEN_BENCH == 1
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Zen4 OpenMP
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -o"
${{ env.SRUN }} --partition=zen4 --time=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-CLX-BASE:
runs-on: pcl-tiergarten
if: inputs.RUN_CLX_BENCH == 1
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Coffee Lake Base
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -b -p"
${{ env.SRUN }} --partition=clxap --time=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-CLX-OMP:
runs-on: pcl-tiergarten
if: inputs.RUN_CLX_BENCH == 1
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Coffee Lake OpenMP
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -o"
${{ env.SRUN }} --partition=clxap --time=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-ADL-BASE:
runs-on: pcl-tiergarten
if: inputs.RUN_ADL_BENCH == 1
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Raptor Lake Base
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -b -p"
${{ env.SRUN }} --partition=rpl --time=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-ADL-OMP:
runs-on: pcl-tiergarten
if: inputs.RUN_ADL_BENCH == 1
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Raptor Lake OpenMP
- name: Zen5 OpenMP
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -o"
${{ env.SRUN }} --partition=rpl --time=2:00:00 --constraint=\"notrb\" -- $CMD
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -o"
${{ env.SRUN }} --partition=zen5 --time=0:30:00 --constraint=\"notrb\" -- $CMD
8 changes: 4 additions & 4 deletions .github/workflows/tpp-llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ jobs:
- uses: actions/checkout@v4
- name: LLVM Base
run: |-
scripts/buildkite/check_llvm.sh || \
scripts/github/check_llvm.sh || \
${{ env.SRUN }} --partition=emr --time=0:30:00 -- \
'KIND=RelWithDebInfo COMPILER=clang \
${{ github.workspace }}/scripts/buildkite/build_llvm.sh'
${{ github.workspace }}/scripts/github/build_llvm.sh'
TPP-MLIR-LLVM-CUDA:
runs-on: pcl-tiergarten
steps:
- uses: actions/checkout@v4
- name: LLVM CUDA
run: |-
GPU=cuda scripts/buildkite/check_llvm.sh || \
GPU=cuda scripts/github/check_llvm.sh || \
${{ env.SRUN }} --partition=a100,v100 --time=0:30:00 -- \
'KIND=RelWithDebInfo COMPILER=clang GPU=cuda \
${{ github.workspace }}/scripts/buildkite/build_llvm.sh'
${{ github.workspace }}/scripts/github/build_llvm.sh'
8 changes: 4 additions & 4 deletions .github/workflows/tpp-mlir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: GCC Release
run: "${{ env.SRUN }} --partition=emr --time=0:30:00 -- \
'KIND=Release COMPILER=gcc CHECK=1 ONEDNN=1 \
${{ github.workspace }}/scripts/buildkite/build_tpp.sh'"
${{ github.workspace }}/scripts/github/build_tpp.sh'"

TPP-MLIR-gcc-deb:
runs-on: pcl-tiergarten
Expand All @@ -32,7 +32,7 @@ jobs:
- name: GCC Debug
run: "${{ env.SRUN }} --partition=emr --time=0:30:00 -- \
'KIND=Debug COMPILER=gcc CHECK=1 ONEDNN=1 \
${{ github.workspace }}/scripts/buildkite/build_tpp.sh'"
${{ github.workspace }}/scripts/github/build_tpp.sh'"

TPP-MLIR-clang-rel:
runs-on: pcl-tiergarten
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Clang Release
run: "${{ env.SRUN }} --partition=emr --time=0:30:00 -- \
'KIND=Release COMPILER=clang LINKER=lld CHECK=1 ONEDNN=1 \
${{ github.workspace }}/scripts/buildkite/build_tpp.sh'"
${{ github.workspace }}/scripts/github/build_tpp.sh'"

TPP-MLIR-clang-deb:
runs-on: pcl-tiergarten
Expand All @@ -52,4 +52,4 @@ jobs:
- name: Clang Debug Sanitizers
run: "${{ env.SRUN }} --partition=emr --time=0:30:00 -- \
'KIND=Debug COMPILER=clang LINKER=lld SANITIZERS=1 CHECK=1 ONEDNN=1 \
${{ github.workspace }}/scripts/buildkite/build_tpp.sh'"
${{ github.workspace }}/scripts/github/build_tpp.sh'"
13 changes: 3 additions & 10 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,16 @@ Scripts to CMake and build the project, run benchmarks etc.
These should be generic to all environments, including developers' own machines.
Given the appropriate dependencies are installed, these should work everywhere.

## Buildkite
## Github

Scripts executed by the Buildkite CI. There should be one script per rule, used by all different builds.

There are two types of scripts:

* YAML: Pipeline descrptions that the buildkite-agent will upload.
* BASH: Scripts that the YAML rules will call.

There should be no code in the YAML files. Bash scripts can depend on and reuse generic CI-scripts.
Scripts executed by the Github CI. There should be one script per rule, used by all different builds.

To run local tests like in the CI-environment (relies at least on the TPP-environment):

```bash
cd tpp-mlir
source scripts/env.sh
KIND=Debug COMPILER=clang LINKER=lld CHECK=1 GPU=cuda CLEAN=1 scripts/buildkite/build_tpp.sh
KIND=Debug COMPILER=clang LINKER=lld CHECK=1 GPU=cuda CLEAN=1 scripts/github/build_tpp.sh
```

Above scripts (scripts/env.sh) must be sourced from inside of the tpp-mlir directory (Git repository).
4 changes: 2 additions & 2 deletions scripts/benchmarks/build_and_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ export LLVM_INSTALL_DIR=${LLVMROOT}/${LLVM_VERSION}
export LLVM_TAR_DIR=${SOURCE_DIR}/llvm
export LLVM_BUILD_DIR=${SOURCE_DIR}/llvm/build
if [ ! -f "${LLVM_INSTALL_DIR}/bin/mlir-opt" ]; then
${SCRIPT_DIR}/buildkite/build_llvm.sh
${SCRIPT_DIR}/github/build_llvm.sh
else
echo "LLVM already built on ${LLVM_INSTALL_DIR}"
fi

# Build TPP-MLIR
export BUILDKITE_BUILD_CHECKOUT_PATH=${SOURCE_DIR}
export BUILD_DIR=${SOURCE_DIR}/build-${COMPILER}
${SCRIPT_DIR}/buildkite/build_tpp.sh
${SCRIPT_DIR}/github/build_tpp.sh

# Run benchmarks
export BENCH_DIR=${BUILDKITE_BUILD_CHECKOUT_PATH:-.}/benchmarks
Expand Down
58 changes: 0 additions & 58 deletions scripts/buildkite/tpp-benchmark.yml

This file was deleted.

27 changes: 0 additions & 27 deletions scripts/buildkite/tpp-gpu.yml

This file was deleted.

19 changes: 0 additions & 19 deletions scripts/buildkite/tpp-llvm.yml

This file was deleted.

29 changes: 0 additions & 29 deletions scripts/buildkite/tpp-mlir.yml

This file was deleted.

14 changes: 0 additions & 14 deletions scripts/buildkite/tpp-performance.yml

This file was deleted.

Loading

0 comments on commit e9e3136

Please sign in to comment.