| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…import We need to set the `OPENBLAS_MAIN_FREE` environment variable before the OpenBLAS initialization runs, however we don't need to touch `os.environ` for that. Deleting a key from `os.environ` can lead to a race condition when numpy is imported in parallel in multiple threads, while `os.unsetenv` always succeeds. See numpygh-30627 for context. Also clean up `GOTOBLAS_MAIN_FREE`, that's a deprecated env var that has the same function as `OPENBLAS_MAIN_FREE`. There won't be any GotoBLAS or early OpenBLAS versions in use anymore that only have the GOTOBLAS flavor. Closes numpygh-30627 Closes numpygh-21223
| Back | FazBrowse Home | New Git URL |
Backport of #30637.
We need to set the OPENBLAS_MAIN_FREE environment variable before the OpenBLAS initialization runs, however we don't need to touch os.environ for that. Deleting a key from os.environ can lead to a race condition when numpy is imported in parallel in multiple threads, while os.unsetenv always succeeds. See gh-30627 for context.
Also clean up GOTOBLAS_MAIN_FREE, that's a deprecated env var that has the same function as OPENBLAS_MAIN_FREE. There won't be any GotoBLAS or early OpenBLAS versions in use anymore that only have the GOTOBLAS flavor.
Closes gh-30627
Closes gh-21223