Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions .github/workflows/build-numpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- cron: '0 5 * * *'

jobs:
NumPyMultiarrayTests:
np-multiarray-tgl:

runs-on: intel-ubuntu-latest

Expand Down Expand Up @@ -42,6 +42,12 @@ jobs:
with:
python-version: '3.11'

- name: Install Intel SDE
run: |
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/788820/sde-external-9.27.0-2023-09-13-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 NumPy dependencies
working-directory: ${{ github.workspace }}/numpy
run: |
Expand All @@ -66,10 +72,9 @@ jobs:
export NUMPY_SITE=$(realpath build-install/usr/lib/python*/site-packages/)
export PYTHONPATH="$PYTHONPATH:$NUMPY_SITE"
cd build-install &&
python -c "import numpy; numpy.show_config()" &&
python -m pytest $NUMPY_SITE/numpy/_core/tests/test_multiarray.py
sde -tgl -- python -m pytest $NUMPY_SITE/numpy/_core/tests/test_multiarray.py

NumPy-SPR-baseline:
np-multiarray-spr:

runs-on: intel-ubuntu-latest

Expand Down Expand Up @@ -130,15 +135,6 @@ jobs:
run: |
spin build -- -Dallow-noblas=true -Dcpu-baseline=avx512_spr

- name: Run tests on TGL
working-directory: ${{ github.workspace }}/numpy
run: |
export NUMPY_SITE=$(realpath build-install/usr/lib/python*/site-packages/)
export PYTHONPATH="$PYTHONPATH:$NUMPY_SITE"
cd build-install &&
sde -tgl -- python -c "import numpy; numpy.show_config()" &&
sde -tgl -- python -m pytest $NUMPY_SITE/numpy/_core/tests/test_multiarray.py

- name: Run tests on SPR
working-directory: ${{ github.workspace }}/numpy
run: |
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/build-test-on-32bit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

## Set up environment
/opt/python/cp39-cp39/bin/python -mvenv venv
source venv/bin/activate
python3 -m pip install meson ninja
export CXX=g++

## Install google test from source
git clone https://github.com/google/googletest.git -b v1.14.0
cd googletest
mkdir build
cd build
cmake .. -DBUILD_GMOCK=OFF
make install

## Install Intel SDE
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/784319/sde-external-9.24.0-2023-07-13-lin.tar.xz
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
mv /tmp/sde/* /opt/sde && ln -s /opt/sde/sde /usr/bin/sde

## Build x86-simd-sort
cd /xss
meson setup -Dbuild_tests=true --warnlevel 2 --werror --buildtype release builddir
cd builddir
ninja

## Run tests
sde -tgl -- ./testexe
sde -skl -- ./testexe
12 changes: 12 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,15 @@ jobs:

- name: Run test suite on SPR
run: sde -spr -- ./builddir/testexe

manylinux-32bit:

runs-on: intel-ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build and test on 32-bit manylinux2014
run: |
docker run -v $(pwd):/xss quay.io/pypa/manylinux2014_i686 \
/bin/bash -xc "source /xss/.github/workflows/build-test-on-32bit.sh"