Skip to content

Commit

Permalink
Update CI to run on SKL, SKX and TGL
Browse files Browse the repository at this point in the history
  • Loading branch information
r-devulap committed Sep 22, 2023
1 parent c25661e commit 3105d32
Showing 1 changed file with 6 additions and 78 deletions.
84 changes: 6 additions & 78 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt update
sudo apt -y install g++-10 libgtest-dev meson curl git cmake
- name: Install google benchmarks
run: |
git clone https://github.com/google/benchmark.git
cd benchmark
cmake -E make_directory "build"
cmake -E chdir "build" cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ../
sudo cmake --build "build" --config Release --target install
- name: Install Intel SDE
run: |
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde
- name: Build
env:
CXX: g++-10
run: |
make clean
meson setup --warnlevel 2 --werror --buildtype plain builddir
cd builddir
ninja
- name: Run test suite on ICX
run: sde -icx -- ./builddir/testexe

SPR:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt update
Expand Down Expand Up @@ -80,45 +42,11 @@ jobs:
cd builddir
ninja
- name: Run _Float16 test suite on SPR
run: sde -spr -- ./builddir/testexe --gtest_filter="*float16*"

compare-benchmarks-with-main:
if: ${{ false }} # disable for now

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
path: x86-simd-sort
- name: Run test suite on SKL
run: sde -skl -- ./builddir/testexe

- name: Specify branch name
working-directory: ${{ github.workspace }}/x86-simd-sort
run: git switch -c pr-branch
- name: Run test suite on SKX
run: sde -skx -- ./builddir/testexe

- uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install dependencies
run: |
sudo apt update
sudo apt -y install g++-12 libgtest-dev meson curl git cmake
- name: Install google benchmarks
run: |
git clone https://github.com/google/benchmark.git
cd benchmark
pip3 install -r tools/requirements.txt
cmake -E make_directory "build"
cmake -E chdir "build" cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ../
sudo cmake --build "build" --config Release --target install
- name: Run bench-compare
working-directory: ${{ github.workspace }}/x86-simd-sort
env:
CXX: g++-12
GBENCH: ${{ github.workspace }}/benchmark
run: bash -x scripts/branch-compare.sh avx
- name: Run test suite on TGL
run: sde -tgl -- ./builddir/testexe

0 comments on commit 3105d32

Please sign in to comment.