summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2023-04-05 09:59:06 +0300
committerGitHub <noreply@github.com>2023-04-05 09:59:06 +0300
commitc16a05ce3877bed28b9880829c169271051ef734 (patch)
treec66b8e635e112afe2c4bc752313c80b47e9178ef
parentbba99dbd606d173a12c7de1867e2337de17c60e9 (diff)
parent3112ebc9f96adb23bb1f58c48704bf6ed03279d1 (diff)
downloadnumpy-c16a05ce3877bed28b9880829c169271051ef734.tar.gz
Merge pull request #23502 from r-devulap/ci-spr
CI: Add CI to test using gcc-12 on Intel Sapphire Rapids
-rw-r--r--.github/workflows/build_test.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml
index 0e82a9bc4..d43786250 100644
--- a/.github/workflows/build_test.yml
+++ b/.github/workflows/build_test.yml
@@ -427,3 +427,34 @@ jobs:
# ICL implies SKX, CLX and CNL
- name: Run SIMD tests (Ice Lake)
run: sde -icl -- python runtests.py -n -v -- -k test_simd
+
+ intel_spr_sde_test:
+ needs: [smoke_test]
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
+ with:
+ submodules: recursive
+ fetch-depth: 0
+ - uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
+ with:
+ python-version: ${{ env.PYTHON_VERSION }}
+ - name: Install Intel SDE
+ run: |
+ curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/751535/sde-external-9.14.0-2022-10-25-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: Install dependencies
+ run: |
+ python -m pip install -r test_requirements.txt
+ sudo apt install gcc-12 g++-12
+ - name: Build and install NumPy
+ run: |
+ export CC=/usr/bin/gcc-12
+ export CXX=/usr/bin/g++-12
+ python -m pip install -e .
+ # Run only a few tests, running everything in an SDE takes a long time
+ # Using pytest directly, unable to use python runtests.py -n -t ...
+ - name: Run linalg/ufunc/umath tests
+ run: |
+ sde -spr -- python -m pytest numpy/core/tests/test_umath* numpy/core/tests/test_ufunc.py numpy/linalg/tests/test_*