Skip to content

Commit 5aca4be

Browse files
committed
gdb debug
1 parent a228ba0 commit 5aca4be

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

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

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ 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
@@ -70,11 +75,18 @@ jobs:
7075
export CFLAGS="${CFLAGS} -fno-fast-math -O2"
7176
pip install . --no-build-isolation --no-deps --verbose
7277
73-
- name: Run mkl_umath tests
78+
- name: Run tests under gdb
7479
run: |
7580
source ${{ env.ONEAPI_ROOT }}/setvars.sh
7681
pip install pytest
77-
# mkl_umath cannot be installed in editable mode, we need
78-
# to change directory before importing it and running tests
7982
cd ..
80-
pytest -s -v --pyargs mkl_umath/mkl_umath/tests
83+
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 -vv || true
84+
85+
# - name: Run mkl_umath tests
86+
# run: |
87+
# source ${{ env.ONEAPI_ROOT }}/setvars.sh
88+
# pip install pytest
89+
# # mkl_umath cannot be installed in editable mode, we need
90+
# # to change directory before importing it and running tests
91+
# cd ..
92+
# pytest -s -v --pyargs mkl_umath/mkl_umath/tests

0 commit comments

Comments
 (0)