Revert change from #532 due to unsafe use of static buffer#1852
Revert change from #532 due to unsafe use of static buffer#1852martin-frbg wants to merge 1 commit intoOpenMathLib:developfrom martin-frbg:revert532
Conversation
|
This does not work for #1847, results are still incorrect. |
|
I can confirm that this (at least for pthreads I think), fixes the specific issue from gh-1844/numpy/numpy#11046 A bit curious, is there a way to add tests for such issues? |
|
"this" being the revert as per this PR, or my belated suggestion to make the y_dummy array thread-local ? |
|
Oh, sorry with "this" I mean the PR. I have been hesitant to dive in the code. Many users and few contributors is a general issue and I am sure it is much worse for OpenBLAS compared to numpy. Maybe we will add the "test" to numpy, sometimes downstream is a good "test suit" ;). |
|
I think I am going to rework this to keep the problematic optimization, while making sure that it only gets built when conditions allow thread-safe execution. (That is, with the y_dummy array either threadprivate in conjunction with USE_OPENMP or annotated with __thread where the compiler supports it) |
|
Closing as superseded by my PR #1865 |
see #1844