Skip to content

Commit d0d1736

Browse files
committed
debug w/ valgrind
1 parent 5aca4be commit d0d1736

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,21 @@ jobs:
7575
export CFLAGS="${CFLAGS} -fno-fast-math -O2"
7676
pip install . --no-build-isolation --no-deps --verbose
7777
78-
- name: Run tests under gdb
78+
# - name: Run tests under gdb
79+
# run: |
80+
# source ${{ env.ONEAPI_ROOT }}/setvars.sh
81+
# pip install pytest
82+
# cd ..
83+
# gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args
84+
85+
- name: run tests under valgrind
7986
run: |
87+
sudo apt-get install -y valgrind
8088
source ${{ env.ONEAPI_ROOT }}/setvars.sh
8189
pip install pytest
8290
cd ..
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
91+
valgrind --error-exitcode=99 python -m pytest -s -v --pyargs mkl_umath/mkl_umath/tests -vv || true
92+
8493
8594
# - name: Run mkl_umath tests
8695
# run: |

0 commit comments

Comments
 (0)