Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lazyly reinit threads after a fork in OMP mode
This initializes the per-thread memory buffers which get cleared/released on a fork via pthread_at_fork. Not doing so leads to each thread calling blas_memory_alloc on almost every execution which slows down the code significantly as the threads race for the memory allocation using locks to serialize that.
- Loading branch information