jax
cae8a5b0 - Re-enable parallel batched LAPACK execution in open-source builds.

Commit
3 days ago
Re-enable parallel batched LAPACK execution in open-source builds. Previously, `GetLapackBatchChunkSize` and `ParallelBatchMap` in `lapack_kernels.cc` were guarded by `#ifdef PLATFORM_GOOGLE` because external builds used SciPy's OpenBLAS/LAPACK, which caused performance regressions and thread-safety issues when called concurrently from `ffi::ThreadPool`. Now that open-source JAX builds use self-built Netlib LAPACK (compiled with LLVM flang) and Eigen BLAS, concurrent calls across the batch dimension are safe and avoid OpenBLAS lock/thread-pool contention. Since `ParallelBatchMap` is now just a pass-through to `ParallelFor`, inline it into its callers. Fixes https://github.com/jax-ml/jax/issues/36927 PiperOrigin-RevId: 1032842735
Author
Parents
Loading