|
7 | 7 | branches: [ "main" ] |
8 | 8 |
|
9 | 9 | 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: |
49 | 11 |
|
50 | 12 | runs-on: ubuntu-latest |
51 | 13 |
|
@@ -80,45 +42,11 @@ jobs: |
80 | 42 | cd builddir |
81 | 43 | ninja |
82 | 44 |
|
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 |
96 | 47 |
|
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 |
100 | 50 |
|
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