summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEve <139727413+netrunnereve@users.noreply.github.com>2023-11-05 07:46:44 +0000
committerGitHub <noreply@github.com>2023-11-05 09:46:44 +0200
commita7fac013cf1cc7bbc0160a226aa2412e9f22e78a (patch)
treeed4ff473132b494d3ebab3d50f8ffda2bac0f966
parent48ade94538fa509465d71023e49d07aab0ec8cd5 (diff)
ci : use intel sde when ci cpu doesn't support avx512 (#3949)
-rw-r--r--.github/workflows/build.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5af497a3..bc295d52 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -288,6 +288,7 @@ jobs:
OPENBLAS_VERSION: 0.3.23
OPENCL_VERSION: 2023.04.17
CLBLAST_VERSION: 1.6.0
+ SDE_VERSION: 9.21.1-2023-04-24
strategy:
matrix:
@@ -383,11 +384,23 @@ jobs:
- name: Test
id: cmake_test
- if: ${{ matrix.build != 'clblast' && (matrix.build != 'avx512' || env.HAS_AVX512F == '1') }} # Test AVX-512 only when possible
+ if: ${{ matrix.build != 'clblast' && (matrix.build != 'avx512' || env.HAS_AVX512F == '1') }} # not all machines have native AVX-512
run: |
cd build
ctest -C Release --verbose --timeout 900
+ - name: Test (Intel SDE)
+ id: cmake_test_sde
+ if: ${{ matrix.build == 'avx512' && env.HAS_AVX512F == '0' }} # use Intel SDE for AVX-512 emulation
+ run: |
+ curl.exe -o $env:RUNNER_TEMP/sde.tar.xz -L "https://downloadmirror.intel.com/777395/sde-external-${env:SDE_VERSION}-win.tar.xz"
+ # for some weird reason windows tar doesn't like sde tar.xz
+ 7z x "-o${env:RUNNER_TEMP}" $env:RUNNER_TEMP/sde.tar.xz
+ 7z x "-o${env:RUNNER_TEMP}" $env:RUNNER_TEMP/sde.tar
+ $sde = $(join-path $env:RUNNER_TEMP sde-external-${env:SDE_VERSION}-win/sde.exe)
+ cd build
+ & $sde -future -- ctest -C Release --verbose --timeout 900
+
- name: Determine tag name
id: tag
shell: bash