2
0
mirror of https://github.com/gentoo-mirror/gentoo.git synced 2026-02-09 00:10:23 +03:00
Files
gentoo/dev-python/numpy/metadata.xml
Michał Górny 30c6893d5c dev-python/numpy: Explicitly control CPU extensions
Add CPU_FLAGS_* for amd64, arm, arm64, ppc64 and x86 to explicitly
control minimal CPU intrinsic use.  According to upstream, this should
grant some performance benefit compared to the default use of dynamic
dispatching based on CPU detection at runtime.

Since upstream is heavily chaining flags one upon another, we respect
upstream chains by stopping when a dependent flag is missing.
Presumably, this should be less confusing than implicitly enabling it,
and more user friendly than REQUIRED_USE.

Also add USE=cpudetection to make it possible to disable dynamic
dispatch for CPUs with more instruction sets.  This should especially
be useful when we are deliberately disabling some instruction sets
to test NumPy without them.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/43190
Closes: https://github.com/gentoo/gentoo/pull/43190
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-08-13 14:26:41 +02:00

1.2 KiB