You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH: Make sure the _xerbla error callback is being used by blas functions #12472
In working on mamtul, it became apparent that the numpy/core/src/common/python_xerbla.c error handler, which should be registered when linking with OpenBLAS, is not being called. This should be used as it turns the default "print to stderr" to "raise a nice Python exception" when input to one of the blas routines is malformed.
Hmm, this is a bit of a mess. We have two copies of python_xerbla.c; only the one in numpy/linalg/lapack_lite/ is tested, and that test is silently skipped when it's failing:
$ spin test -- -k xerbla --verbose
numpy/linalg/tests/test_linalg.py::test_xerbla_override SKIPPED (Numpy xerbla not linked in.) [100%]
Activity
rgommers commentedon Jul 23, 2023
Hmm, this is a bit of a mess. We have two copies of
python_xerbla.c; only the one innumpy/linalg/lapack_lite/is tested, and that test is silently skipped when it's failing: