Skip to content

Commit 7597350

Browse files
committed
fix: debug py3.13 GHA build-with-clang segfault
1 parent c36aae0 commit 7597350

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

.github/workflows/build-with-clang.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,41 @@ jobs:
6262
- name: List oneAPI folder content
6363
run: ls ${{ env.ONEAPI_ROOT }}/compiler
6464

65+
# - name: Install gdb
66+
# run: |
67+
# sudo apt-get update --fix-missing
68+
# sudo apt-get install -y gdb
69+
6570
- name: Build mkl_umath
6671
run: |
6772
source ${{ env.ONEAPI_ROOT }}/setvars.sh
6873
echo $CMPLR_ROOT
6974
export CC=$CMPLR_ROOT/bin/icx
75+
export CXX=$CMPLR_ROOT/bin/icpx
7076
export CFLAGS="${CFLAGS} -fno-fast-math -O2"
71-
pip install . --no-build-isolation --no-deps --verbose
77+
pip install -e . --no-build-isolation --no-deps --verbose
78+
79+
# - name: Run tests under gdb
80+
# run: |
81+
# source ${{ env.ONEAPI_ROOT }}/setvars.sh
82+
# pip install pytest
83+
# setarch $(uname -m) -R gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args python -m pytest -s -v --pyargs mkl_umath/mkl_umath/tests || true
84+
85+
# - name: run tests under valgrind
86+
# run: |
87+
# sudo apt-get install -y valgrind
88+
# source ${{ env.ONEAPI_ROOT }}/setvars.sh
89+
# pip install pytest
90+
# valgrind --error-exitcode=99 python -m pytest -s -v --pyargs mkl_umath/mkl_umath/tests || true
91+
92+
# - name: Enable local core dumps (Python 3.13 only)
93+
# run: |
94+
# sudo sysctl -w kernel.core_uses_pid=1
95+
# sudo bash -c 'echo core > /proc/sys/kernel/core_pattern'
96+
# ulimit -c unlimited
97+
# cat /proc/sys/kernel/core_pattern
7298

7399
- name: Run mkl_umath tests
74100
run: |
75101
source ${{ env.ONEAPI_ROOT }}/setvars.sh
76-
pip install pytest
77-
# mkl_umath cannot be installed in editable mode, we need
78-
# to change directory before importing it and running tests
79-
cd ..
80-
python -m pytest -sv --pyargs mkl_umath/mkl_umath/tests
102+
pytest -q --pyargs mkl_umath/mkl_umath/tests

0 commit comments

Comments
 (0)