Skip to content

Commit

Permalink
[CI] Remove buildkite logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rengolin committed Dec 5, 2024
1 parent 0434913 commit c54f8f0
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 244 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/tpp-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ 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"
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=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-EMR-OMP:
Expand All @@ -57,8 +57,8 @@ 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"
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=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-ZEN-BASE:
Expand All @@ -69,8 +69,8 @@ jobs:
- uses: actions/checkout@v4
- name: Zen4 Base
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -b -p"
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -b -p"
${{ env.SRUN }} --partition=zen4 --time=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-ZEN-OMP:
Expand All @@ -81,8 +81,8 @@ jobs:
- 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"
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -o"
${{ env.SRUN }} --partition=zen4 --time=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-CLX-BASE:
Expand All @@ -93,8 +93,8 @@ jobs:
- 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"
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -b -p"
${{ env.SRUN }} --partition=clxap --time=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-CLX-OMP:
Expand All @@ -105,8 +105,8 @@ jobs:
- 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"
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -o"
${{ env.SRUN }} --partition=clxap --time=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-ADL-BASE:
Expand All @@ -117,8 +117,8 @@ jobs:
- 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"
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -b -p"
${{ env.SRUN }} --partition=rpl --time=2:00:00 --constraint=\"notrb\" -- $CMD
TPP-MLIR-ADL-OMP:
Expand All @@ -129,6 +129,6 @@ jobs:
- uses: actions/checkout@v4
- name: Raptor Lake OpenMP
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -o"
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -o"
${{ env.SRUN }} --partition=rpl --time=2:00: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.

49 changes: 0 additions & 49 deletions scripts/ci/trigger.sh

This file was deleted.

Loading

0 comments on commit c54f8f0

Please sign in to comment.