summaryrefslogtreecommitdiff
path: root/dev-python/numpy
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-09-27 17:20:20 +0200
committerMichał Górny <mgorny@gentoo.org>2025-09-27 18:11:19 +0200
commit6b175232ec90623618a66ae8fb339628c926ed38 (patch)
tree76b4e5ad70722ab0856c9099475507bd0a6199a8 /dev-python/numpy
parentfe73fcef5e39c13a8c6eb657c6bf86d453fa3fda (diff)
downloadgentoo-6b175232ec90623618a66ae8fb339628c926ed38.tar.gz
gentoo-6b175232ec90623618a66ae8fb339628c926ed38.tar.bz2
gentoo-6b175232ec90623618a66ae8fb339628c926ed38.zip
dev-python/numpy: Disable LAPACK threads in xdist testing
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/numpy')
-rw-r--r--dev-python/numpy/numpy-2.3.3.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/dev-python/numpy/numpy-2.3.3.ebuild b/dev-python/numpy/numpy-2.3.3.ebuild
index 9fbfb668b49e..5cf8a6772641 100644
--- a/dev-python/numpy/numpy-2.3.3.ebuild
+++ b/dev-python/numpy/numpy-2.3.3.ebuild
@@ -232,6 +232,13 @@ python_configure_all() {
}
python_test() {
+ # We run tests in parallel, so avoid having n^2 threads in lapack
+ # tests.
+ local -x BLIS_NUM_THREADS=1
+ local -x MKL_NUM_THREADS=1
+ local -x OMP_NUM_THREADS=1
+ local -x OPENBLAS_NUM_THREADS=1
+
# don't run tests that require more than 2 GiB of RAM (per process)
local -x NPY_AVAILABLE_MEM="2 GiB"