File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments