Skip to content

Commit 49927b7

Browse files
author
Raghuveer Devulapalli
committed
Update CI to run on SKL, SKX and TGL
1 parent c25661e commit 49927b7

File tree

1 file changed

+7
-79
lines changed

1 file changed

+7
-79
lines changed

.github/workflows/c-cpp.yml

Lines changed: 7 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,7 @@ on:
77
branches: [ "main" ]
88

99
jobs:
10-
ICX:
11-
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- uses: actions/checkout@v3
16-
17-
- name: Install dependencies
18-
run: |
19-
sudo apt update
20-
sudo apt -y install g++-10 libgtest-dev meson curl git cmake
21-
22-
- name: Install google benchmarks
23-
run: |
24-
git clone https://github.com/google/benchmark.git
25-
cd benchmark
26-
cmake -E make_directory "build"
27-
cmake -E chdir "build" cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ../
28-
sudo cmake --build "build" --config Release --target install
29-
30-
- name: Install Intel SDE
31-
run: |
32-
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/732268/sde-external-9.7.0-2022-05-09-lin.tar.xz
33-
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
34-
sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde
35-
36-
- name: Build
37-
env:
38-
CXX: g++-10
39-
run: |
40-
make clean
41-
meson setup --warnlevel 2 --werror --buildtype plain builddir
42-
cd builddir
43-
ninja
44-
45-
- name: Run test suite on ICX
46-
run: sde -icx -- ./builddir/testexe
47-
48-
SPR:
10+
tests:
4911

5012
runs-on: ubuntu-latest
5113

@@ -80,45 +42,11 @@ jobs:
8042
cd builddir
8143
ninja
8244
83-
- name: Run _Float16 test suite on SPR
84-
run: sde -spr -- ./builddir/testexe --gtest_filter="*float16*"
85-
86-
compare-benchmarks-with-main:
87-
if: ${{ false }} # disable for now
88-
89-
runs-on: ubuntu-latest
90-
91-
steps:
92-
- uses: actions/checkout@v3
93-
with:
94-
fetch-depth: 0
95-
path: x86-simd-sort
45+
- name: Run test suite on SKL
46+
run: sde -skl -- ./builddir/testexe
9647

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

101-
- uses: actions/setup-python@v4
102-
with:
103-
python-version: '3.9'
104-
105-
- name: Install dependencies
106-
run: |
107-
sudo apt update
108-
sudo apt -y install g++-12 libgtest-dev meson curl git cmake
109-
110-
- name: Install google benchmarks
111-
run: |
112-
git clone https://github.com/google/benchmark.git
113-
cd benchmark
114-
pip3 install -r tools/requirements.txt
115-
cmake -E make_directory "build"
116-
cmake -E chdir "build" cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ../
117-
sudo cmake --build "build" --config Release --target install
118-
119-
- name: Run bench-compare
120-
working-directory: ${{ github.workspace }}/x86-simd-sort
121-
env:
122-
CXX: g++-12
123-
GBENCH: ${{ github.workspace }}/benchmark
124-
run: bash -x scripts/branch-compare.sh avx
51+
- name: Run test suite on TGL
52+
run: sde -tgl -- ./builddir/testexe

0 commit comments

Comments
 (0)