Skip to content

REV: Manual revert of float16 svml use#31178

Merged
charris merged 1 commit into
numpy:mainfrom
seberg:revert-float16-svml
Apr 7, 2026
Merged

REV: Manual revert of float16 svml use#31178
charris merged 1 commit into
numpy:mainfrom
seberg:revert-float16-svml

Conversation

@seberg
Copy link
Copy Markdown
Member

@seberg seberg commented Apr 7, 2026

This is a manual revert of gh-23351 since things were moved around quite a lot since then.

Closes gh-30821.

This is a manual revert of numpygh-23351 since things were moved around
quite a lot since then.
@seberg
Copy link
Copy Markdown
Member Author

seberg commented Apr 7, 2026

Unrelated TSan failure, CC @ngoldbaum in case this one is new (will restart test):

Details
[1/2] Compiling C object mem_policy.cpython-314t-x86_64-linux-gnu.so.p/source.c.o
[2/2] Linking target mem_policy.cpython-314t-x86_64-linux-gnu.so
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /work/.pyenv/versions/3.14.3t/bin/ninja
PASSED
numpy/_core/tests/test_mem_policy.py::test_default_policy_singleton PASSED
numpy/_core/tests/test_mem_policy.py::test_policy_propagation PASSED
numpy/_core/tests/test_mem_policy.py::test_context_locality PASSED
numpy/_core/tests/test_mem_policy.py::test_thread_locality PASSED
numpy/_core/tests/test_mem_policy.py::test_new_policy SKIPPED (too s...)
numpy/_core/tests/test_mem_policy.py::test_switch_owner[0] PASSED
numpy/_core/tests/test_mem_policy.py::test_switch_owner[1] PASSED
numpy/_core/tests/test_mem_policy.py::test_switch_owner[None] PASSED
numpy/_core/tests/test_mem_policy.py::test_owner_is_base PASSED
numpy/_core/tests/test_argparse.py::test_thread_safe_argparse_cache PASSED
numpy/_core/tests/test_argparse.py::test_invalid_integers PASSED
numpy/_core/tests/test_argparse.py::test_missing_arguments PASSED
numpy/_core/tests/test_argparse.py::test_too_many_positional PASSED
numpy/_core/tests/test_argparse.py::test_multiple_values PASSED
numpy/_core/tests/test_argparse.py::test_string_fallbacks PASSED
numpy/_core/tests/test_argparse.py::test_too_many_arguments_method_forwarding PASSED
numpy/_core/tests/test_multithreading.py::test_parallel_randomstate PASSED
numpy/_core/tests/test_multithreading.py::test_parallel_ufunc_execution PASSED
numpy/_core/tests/test_multithreading.py::test_temp_elision_thread_safety PASSED
numpy/_core/tests/test_multithreading.py::test_eigvalsh_thread_safety PASSED
numpy/_core/tests/test_multithreading.py::test_printoptions_thread_safety PASSED
numpy/_core/tests/test_multithreading.py::test_parallel_reduction PASSED
numpy/_core/tests/test_multithreading.py::test_parallel_flat_iterator PASSED
numpy/_core/tests/test_multithreading.py::test_multithreaded_repeat PASSED
==================
WARNING: ThreadSanitizer: data race (pid=2566)
  Write of size 8 at 0x72cc005e8000 by main thread:
    #0 free <null> (python3.14+0x6377e) (BuildId: de7a72a55f9634d4b8bebf4d6ad6ace6e892d873)
    #1 _dl_deallocate_tls <null> (ld-linux-x86-64.so.2+0x14e05) (BuildId: 205841581372e951d18b59e0d3b24c16d2291fef)
    #2 PyThread_detach_thread /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/thread_pthread.h:358:12 (libpython3.14t.so.1.0+0x43f7e5) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #3 detach_thread /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Modules/_threadmodule.c:231:9 (libpython3.14t.so.1.0+0x501d06) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #4 ThreadHandle_decref /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Modules/_threadmodule.c:261:50 (libpython3.14t.so.1.0+0x501d06)
    #5 PyThreadHandleObject_dealloc /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Modules/_threadmodule.c:643:5 (libpython3.14t.so.1.0+0x502e28) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #6 _Py_Dealloc /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/object.c:3076:5 (libpython3.14t.so.1.0+0x1e182a) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #7 _Py_MergeZeroLocalRefcount /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/object.c (libpython3.14t.so.1.0+0x1e1a84) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #8 Py_DECREF /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/refcount.h:375:13 (libpython3.14t.so.1.0+0x1c1256) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #9 clear_inline_values /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/dictobject.c:7197:13 (libpython3.14t.so.1.0+0x1c1256)
    #10 PyObject_ClearManagedDict /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/dictobject.c:7416:13 (libpython3.14t.so.1.0+0x1c1256)
    #11 subtype_dealloc /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:2684:9 (libpython3.14t.so.1.0+0x23bacc) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #12 _Py_Dealloc /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/object.c:3076:5 (libpython3.14t.so.1.0+0x1e182a) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #13 merge_queued_objects /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/brc.c:110:13 (libpython3.14t.so.1.0+0x3348ca) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #14 _Py_brc_merge_refcounts /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/brc.c:131:5 (libpython3.14t.so.1.0+0x3348ca)
    #15 _Py_HandlePending /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval_gil.c:1388:9 (libpython3.14t.so.1.0+0x3c48ea) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #16 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:2689:31 (libpython3.14t.so.1.0+0x33fecb) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #17 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x336d80) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #18 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x336d80)
    #19 _PyFunction_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c (libpython3.14t.so.1.0+0x12c691) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #20 _PyObject_VectorcallDictTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:146:15 (libpython3.14t.so.1.0+0x12b1e0) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #21 _PyObject_Call_Prepend /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:504:24 (libpython3.14t.so.1.0+0x12ccd6) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #22 call_method /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:2937:19 (libpython3.14t.so.1.0+0x24d608) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #23 slot_tp_call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:10254:12 (libpython3.14t.so.1.0+0x24d441) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #24 _PyObject_MakeTpCall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:242:18 (libpython3.14t.so.1.0+0x12b49e) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #25 _PyObject_VectorcallTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_call.h:167:16 (libpython3.14t.so.1.0+0x12c0ba) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #26 PyObject_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:327:12 (libpython3.14t.so.1.0+0x12c0ba)
    #27 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:3230:35 (libpython3.14t.so.1.0+0x3421f7) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #28 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x336d80) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #29 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x336d80)
    #30 _PyFunction_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c (libpython3.14t.so.1.0+0x12c691) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #31 _PyObject_VectorcallDictTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:146:15 (libpython3.14t.so.1.0+0x12b1e0) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #32 _PyObject_Call_Prepend /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:504:24 (libpython3.14t.so.1.0+0x12ccd6) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #33 call_method /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:2937:19 (libpython3.14t.so.1.0+0x24d608) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #34 slot_tp_call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:10254:12 (libpython3.14t.so.1.0+0x24d441) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #35 _PyObject_MakeTpCall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:242:18 (libpython3.14t.so.1.0+0x12b49e) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #36 _PyObject_VectorcallTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_call.h:167:16 (libpython3.14t.so.1.0+0x12c0ba) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #37 PyObject_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:327:12 (libpython3.14t.so.1.0+0x12c0ba)
    #38 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:2962:35 (libpython3.14t.so.1.0+0x341035) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #39 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x336d80) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #40 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x336d80)
    #41 _PyFunction_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c (libpython3.14t.so.1.0+0x12c691) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #42 _PyObject_VectorcallDictTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:146:15 (libpython3.14t.so.1.0+0x12b1e0) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #43 _PyObject_Call_Prepend /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:504:24 (libpython3.14t.so.1.0+0x12ccd6) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #44 call_method /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:2937:19 (libpython3.14t.so.1.0+0x24d608) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #45 slot_tp_call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:10254:12 (libpython3.14t.so.1.0+0x24d441) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #46 _PyObject_MakeTpCall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:242:18 (libpython3.14t.so.1.0+0x12b49e) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #47 _PyObject_VectorcallTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_call.h:167:16 (libpython3.14t.so.1.0+0x12c0ba) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #48 PyObject_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:327:12 (libpython3.14t.so.1.0+0x12c0ba)
    #49 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:2962:35 (libpython3.14t.so.1.0+0x341035) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #50 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x3368bf) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #51 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x3368bf)
    #52 PyEval_EvalCode /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:975:21 (libpython3.14t.so.1.0+0x3368bf)
    #53 builtin_exec_impl /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/bltinmodule.c:1180:17 (libpython3.14t.so.1.0+0x32fc23) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #54 builtin_exec /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/clinic/bltinmodule.c.h:571:20 (libpython3.14t.so.1.0+0x32fc23)
    #55 cfunction_vectorcall_FASTCALL_KEYWORDS /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/methodobject.c:465:24 (libpython3.14t.so.1.0+0x1da645) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #56 _PyObject_VectorcallTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_call.h:169:11 (libpython3.14t.so.1.0+0x12bffc) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #57 PyObject_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:327:12 (libpython3.14t.so.1.0+0x12bffc)
    #58 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:1622:35 (libpython3.14t.so.1.0+0x33be8f) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #59 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x336d80) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #60 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x336d80)
    #61 _PyFunction_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c (libpython3.14t.so.1.0+0x12c691) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #62 _PyVectorcall_Call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:273:16 (libpython3.14t.so.1.0+0x12c317) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #63 _PyObject_Call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:348:16 (libpython3.14t.so.1.0+0x12c317)
    #64 PyObject_Call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:373:12 (libpython3.14t.so.1.0+0x12c387) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #65 pymain_run_module /work/.pyenv/sources/3.14.3t/Python-3.14.3/Modules/main.c:353:14 (libpython3.14t.so.1.0+0x45ea1e) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #66 pymain_run_python /work/.pyenv/sources/3.14.3t/Python-3.14.3/Modules/main.c:688:21 (libpython3.14t.so.1.0+0x45e0b0) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #67 Py_RunMain /work/.pyenv/sources/3.14.3t/Python-3.14.3/Modules/main.c:775:5 (libpython3.14t.so.1.0+0x45e0b0)
    #68 pymain_main /work/.pyenv/sources/3.14.3t/Python-3.14.3/Modules/main.c:805:12 (libpython3.14t.so.1.0+0x45e838) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #69 Py_BytesMain /work/.pyenv/sources/3.14.3t/Python-3.14.3/Modules/main.c:829:12 (libpython3.14t.so.1.0+0x45e8bc) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #70 main /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Programs/python.c:15:12 (python3.14+0xe8c9b) (BuildId: de7a72a55f9634d4b8bebf4d6ad6ace6e892d873)

  Previous read of size 8 at 0x72cc005e8000 by thread T1019:
    #0 cache_destructor::~cache_destructor() /__w/numpy/numpy/build/../numpy/_core/src/multiarray/alloc.cpp:82:20 (_multiarray_umath.cpython-314t-x86_64-linux-gnu.so+0x27d59e) (BuildId: c84f594227c8d7fd820a0b95e1fca24f4cda3b2b)
    #1 __call_tls_dtors <null> (libc.so.6+0x47e9e) (BuildId: ae7440bbdce614e0e79280c3b2e45b1df44e639c)

  Thread T1019 'ThreadPoolExecu' (tid=3797, finished) created by main thread at:
    #0 pthread_create <null> (python3.14+0x64bde) (BuildId: de7a72a55f9634d4b8bebf4d6ad6ace6e892d873)
    #1 do_start_joinable_thread /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/thread_pthread.h:289:14 (libpython3.14t.so.1.0+0x43f6fa) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #2 PyThread_start_joinable_thread /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/thread_pthread.h:331:9 (libpython3.14t.so.1.0+0x43f51a) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #3 ThreadHandle_start /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Modules/_threadmodule.c:445:9 (libpython3.14t.so.1.0+0x5019d6) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #4 do_start_new_thread /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Modules/_threadmodule.c:1868:9 (libpython3.14t.so.1.0+0x5019d6)
    #5 thread_PyThread_start_joinable_thread /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Modules/_threadmodule.c:1991:14 (libpython3.14t.so.1.0+0x5007d1) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #6 cfunction_call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/methodobject.c:564:18 (libpython3.14t.so.1.0+0x1db2f9) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #7 _PyObject_MakeTpCall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:242:18 (libpython3.14t.so.1.0+0x12b49e) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #8 _PyObject_VectorcallTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_call.h:167:16 (libpython3.14t.so.1.0+0x12c0ba) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #9 PyObject_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:327:12 (libpython3.14t.so.1.0+0x12c0ba)
    #10 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:3230:35 (libpython3.14t.so.1.0+0x3421f7) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #11 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x336d80) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #12 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x336d80)
    #13 _PyFunction_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c (libpython3.14t.so.1.0+0x12c691) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #14 _PyObject_VectorcallDictTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:146:15 (libpython3.14t.so.1.0+0x12b1e0) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #15 _PyObject_Call_Prepend /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:504:24 (libpython3.14t.so.1.0+0x12ccd6) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #16 call_method /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:2937:19 (libpython3.14t.so.1.0+0x24d608) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #17 slot_tp_call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:10254:12 (libpython3.14t.so.1.0+0x24d441) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #18 _PyObject_MakeTpCall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:242:18 (libpython3.14t.so.1.0+0x12b49e) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #19 _PyObject_VectorcallTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_call.h:167:16 (libpython3.14t.so.1.0+0x12c0ba) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #20 PyObject_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:327:12 (libpython3.14t.so.1.0+0x12c0ba)
    #21 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:3230:35 (libpython3.14t.so.1.0+0x3421f7) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #22 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x336d80) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #23 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x336d80)
    #24 _PyFunction_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c (libpython3.14t.so.1.0+0x12c691) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #25 _PyObject_VectorcallDictTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:146:15 (libpython3.14t.so.1.0+0x12b1e0) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #26 _PyObject_Call_Prepend /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:504:24 (libpython3.14t.so.1.0+0x12ccd6) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #27 call_method /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:2937:19 (libpython3.14t.so.1.0+0x24d608) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #28 slot_tp_call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:10254:12 (libpython3.14t.so.1.0+0x24d441) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #29 _PyObject_Call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:361:18 (libpython3.14t.so.1.0+0x12c2e4) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #30 PyObject_Call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:373:12 (libpython3.14t.so.1.0+0x12c387) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #31 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:2657:32 (libpython3.14t.so.1.0+0x33fc93) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #32 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x336d80) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #33 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x336d80)
    #34 _PyFunction_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c (libpython3.14t.so.1.0+0x12c691) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #35 _PyObject_VectorcallDictTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:146:15 (libpython3.14t.so.1.0+0x12b1e0) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #36 _PyObject_Call_Prepend /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:504:24 (libpython3.14t.so.1.0+0x12ccd6) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #37 call_method /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:2937:19 (libpython3.14t.so.1.0+0x24d608) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #38 slot_tp_call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:10254:12 (libpython3.14t.so.1.0+0x24d441) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #39 _PyObject_MakeTpCall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:242:18 (libpython3.14t.so.1.0+0x12b49e) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #40 _PyObject_VectorcallTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_call.h:167:16 (libpython3.14t.so.1.0+0x12c0ba) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #41 PyObject_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:327:12 (libpython3.14t.so.1.0+0x12c0ba)
    #42 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:3230:35 (libpython3.14t.so.1.0+0x3421f7) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #43 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x336d80) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #44 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x336d80)
    #45 _PyFunction_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c (libpython3.14t.so.1.0+0x12c691) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #46 _PyObject_VectorcallDictTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:146:15 (libpython3.14t.so.1.0+0x12b1e0) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #47 _PyObject_Call_Prepend /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:504:24 (libpython3.14t.so.1.0+0x12ccd6) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #48 call_method /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:2937:19 (libpython3.14t.so.1.0+0x24d608) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #49 slot_tp_call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:10254:12 (libpython3.14t.so.1.0+0x24d441) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #50 _PyObject_MakeTpCall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:242:18 (libpython3.14t.so.1.0+0x12b49e) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #51 _PyObject_VectorcallTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_call.h:167:16 (libpython3.14t.so.1.0+0x12c0ba) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #52 PyObject_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:327:12 (libpython3.14t.so.1.0+0x12c0ba)
    #53 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:2962:35 (libpython3.14t.so.1.0+0x341035) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #54 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x336d80) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #55 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x336d80)
    #56 _PyFunction_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c (libpython3.14t.so.1.0+0x12c691) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #57 _PyObject_VectorcallDictTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:146:15 (libpython3.14t.so.1.0+0x12b1e0) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #58 _PyObject_Call_Prepend /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:504:24 (libpython3.14t.so.1.0+0x12ccd6) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #59 call_method /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:2937:19 (libpython3.14t.so.1.0+0x24d608) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #60 slot_tp_call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/typeobject.c:10254:12 (libpython3.14t.so.1.0+0x24d441) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #61 _PyObject_MakeTpCall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:242:18 (libpython3.14t.so.1.0+0x12b49e) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #62 _PyObject_VectorcallTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_call.h:167:16 (libpython3.14t.so.1.0+0x12c0ba) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #63 PyObject_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:327:12 (libpython3.14t.so.1.0+0x12c0ba)
    #64 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:2962:35 (libpython3.14t.so.1.0+0x341035) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #65 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x3368bf) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #66 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x3368bf)
    #67 PyEval_EvalCode /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:975:21 (libpython3.14t.so.1.0+0x3368bf)
    #68 builtin_exec_impl /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/bltinmodule.c:1180:17 (libpython3.14t.so.1.0+0x32fc23) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #69 builtin_exec /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/clinic/bltinmodule.c.h:571:20 (libpython3.14t.so.1.0+0x32fc23)
    #70 cfunction_vectorcall_FASTCALL_KEYWORDS /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/methodobject.c:465:24 (libpython3.14t.so.1.0+0x1da645) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #71 _PyObject_VectorcallTstate /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_call.h:169:11 (libpython3.14t.so.1.0+0x12bffc) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #72 PyObject_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:327:12 (libpython3.14t.so.1.0+0x12bffc)
    #73 _PyEval_EvalFrameDefault /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/generated_cases.c.h:1622:35 (libpython3.14t.so.1.0+0x33be8f) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #74 _PyEval_EvalFrame /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Include/internal/pycore_ceval.h:120:16 (libpython3.14t.so.1.0+0x336d80) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #75 _PyEval_Vector /work/.pyenv/sources/3.14.3t/Python-3.14.3/Python/ceval.c:2083:12 (libpython3.14t.so.1.0+0x336d80)
    #76 _PyFunction_Vectorcall /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c (libpython3.14t.so.1.0+0x12c691) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #77 _PyVectorcall_Call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:273:16 (libpython3.14t.so.1.0+0x12c317) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #78 _PyObject_Call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:348:16 (libpython3.14t.so.1.0+0x12c317)
    #79 PyObject_Call /work/.pyenv/sources/3.14.3t/Python-3.14.3/Objects/call.c:373:12 (libpython3.14t.so.1.0+0x12c387) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #80 pymain_run_module /work/.pyenv/sources/3.14.3t/Python-3.14.3/Modules/main.c:353:14 (libpython3.14t.so.1.0+0x45ea1e) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #81 pymain_run_python /work/.pyenv/sources/3.14.3t/Python-3.14.3/Modules/main.c:688:21 (libpython3.14t.so.1.0+0x45e0b0) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #82 Py_RunMain /work/.pyenv/sources/3.14.3t/Python-3.14.3/Modules/main.c:775:5 (libpython3.14t.so.1.0+0x45e0b0)
    #83 pymain_main /work/.pyenv/sources/3.14.3t/Python-3.14.3/Modules/main.c:805:12 (libpython3.14t.so.1.0+0x45e838) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #84 Py_BytesMain /work/.pyenv/sources/3.14.3t/Python-3.14.3/Modules/main.c:829:12 (libpython3.14t.so.1.0+0x45e8bc) (BuildId: cb8f90e4c5e317580b5b21cb4ef066a699b7c085)
    #85 main /work/.pyenv/sources/3.14.3t/Python-3.14.3/./Programs/python.c:15:12 (python3.14+0xe8c9b) (BuildId: de7a72a55f9634d4b8bebf4d6ad6ace6e892d873)

SUMMARY: ThreadSanitizer: data race (/work/.pyenv/versions/3.14.3t/bin/python3.14+0x6377e) (BuildId: de7a72a55f9634d4b8bebf4d6ad6ace6e892d873) in free
==================
numpy/_core/tests/test_multithreading.py::test_structured_advanced_indexing PASSED

@ngoldbaum
Copy link
Copy Markdown
Member

Thanks, I opened #31179.

@charris charris added 34 - Reversion Reversion of previous commit or merge 09 - Backport-Candidate PRs tagged should be backported labels Apr 7, 2026
@charris charris merged commit bee41a1 into numpy:main Apr 7, 2026
89 of 90 checks passed
@charris
Copy link
Copy Markdown
Member

charris commented Apr 7, 2026

Thanks Sebastian, I also marked this for backport, but that will likely also need to be manual.

@seberg seberg deleted the revert-float16-svml branch April 7, 2026 16:07
charris pushed a commit to charris/numpy that referenced this pull request Apr 11, 2026
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Apr 11, 2026
charris added a commit that referenced this pull request Apr 11, 2026
REV: Manual revert of float16 svml use (#31178)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

34 - Reversion Reversion of previous commit or merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Highly degraded precision for tanh for arrays of float16 on Sapphire Rapids - Regression in 2.3.0

3 participants