Skip to content

Commit 1b6aa83

Browse files
author
Raghuveer Devulapalli
authored
Merge pull request #114 from r-devulap/ci-32bit
CI: build and test on 32-bit linux
2 parents 7060e3c + ae77a22 commit 1b6aa83

File tree

3 files changed

+51
-13
lines changed

3 files changed

+51
-13
lines changed

.github/workflows/build-numpy.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- cron: '0 5 * * *'
1010

1111
jobs:
12-
NumPyMultiarrayTests:
12+
np-multiarray-tgl:
1313

1414
runs-on: intel-ubuntu-latest
1515

@@ -42,6 +42,12 @@ jobs:
4242
with:
4343
python-version: '3.11'
4444

45+
- name: Install Intel SDE
46+
run: |
47+
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/788820/sde-external-9.27.0-2023-09-13-lin.tar.xz
48+
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
49+
sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde
50+
4551
- name: Install NumPy dependencies
4652
working-directory: ${{ github.workspace }}/numpy
4753
run: |
@@ -66,10 +72,9 @@ jobs:
6672
export NUMPY_SITE=$(realpath build-install/usr/lib/python*/site-packages/)
6773
export PYTHONPATH="$PYTHONPATH:$NUMPY_SITE"
6874
cd build-install &&
69-
python -c "import numpy; numpy.show_config()" &&
70-
python -m pytest $NUMPY_SITE/numpy/_core/tests/test_multiarray.py
75+
sde -tgl -- python -m pytest $NUMPY_SITE/numpy/_core/tests/test_multiarray.py
7176
72-
NumPy-SPR-baseline:
77+
np-multiarray-spr:
7378

7479
runs-on: intel-ubuntu-latest
7580

@@ -130,15 +135,6 @@ jobs:
130135
run: |
131136
spin build -- -Dallow-noblas=true -Dcpu-baseline=avx512_spr
132137
133-
- name: Run tests on TGL
134-
working-directory: ${{ github.workspace }}/numpy
135-
run: |
136-
export NUMPY_SITE=$(realpath build-install/usr/lib/python*/site-packages/)
137-
export PYTHONPATH="$PYTHONPATH:$NUMPY_SITE"
138-
cd build-install &&
139-
sde -tgl -- python -c "import numpy; numpy.show_config()" &&
140-
sde -tgl -- python -m pytest $NUMPY_SITE/numpy/_core/tests/test_multiarray.py
141-
142138
- name: Run tests on SPR
143139
working-directory: ${{ github.workspace }}/numpy
144140
run: |
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
## Set up environment
4+
/opt/python/cp39-cp39/bin/python -mvenv venv
5+
source venv/bin/activate
6+
python3 -m pip install meson ninja
7+
export CXX=g++
8+
9+
## Install google test from source
10+
git clone https://github.com/google/googletest.git -b v1.14.0
11+
cd googletest
12+
mkdir build
13+
cd build
14+
cmake .. -DBUILD_GMOCK=OFF
15+
make install
16+
17+
## Install Intel SDE
18+
curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/784319/sde-external-9.24.0-2023-07-13-lin.tar.xz
19+
mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/
20+
mv /tmp/sde/* /opt/sde && ln -s /opt/sde/sde /usr/bin/sde
21+
22+
## Build x86-simd-sort
23+
cd /xss
24+
meson setup -Dbuild_tests=true --warnlevel 2 --werror --buildtype release builddir
25+
cd builddir
26+
ninja
27+
28+
## Run tests
29+
sde -tgl -- ./testexe
30+
sde -skl -- ./testexe

.github/workflows/c-cpp.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,15 @@ jobs:
167167
168168
- name: Run test suite on SPR
169169
run: sde -spr -- ./builddir/testexe
170+
171+
manylinux-32bit:
172+
173+
runs-on: intel-ubuntu-latest
174+
175+
steps:
176+
- uses: actions/checkout@v3
177+
178+
- name: Build and test on 32-bit manylinux2014
179+
run: |
180+
docker run -v $(pwd):/xss quay.io/pypa/manylinux2014_i686 \
181+
/bin/bash -xc "source /xss/.github/workflows/build-test-on-32bit.sh"

0 commit comments

Comments
 (0)