]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python3-numpy: Enable rvv on riscv
authorKhem Raj <raj.khem@gmail.com>
Thu, 15 May 2025 06:54:13 +0000 (23:54 -0700)
committerKhem Raj <raj.khem@gmail.com>
Fri, 7 Nov 2025 15:07:07 +0000 (07:07 -0800)
Several tests expect vectorizer

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-devtools/python/python3-numpy_2.3.4.bb

index 7f82ca87a7a888ff684b276a8faaa0fb981f4af3..59daeb52668fd653c15e3b8f0111cd0748eeb275 100644 (file)
@@ -26,6 +26,9 @@ PACKAGECONFIG[svml] = "-Ddisable-svml=false,-Ddisable-svml=true"
 # the overflow tests fail with compiler-rt on aarch64
 LDFLAGS:append:toolchain-clang:aarch64 = " -rtlib=libgcc -unwindlib=libgcc"
 
+CFLAGS:append:riscv64 = " -march=rv64gcv"
+CFLAGS:append:riscv32 = " -march=rv32gcv"
+
 # Remove references to buildpaths from numpy's __config__.py
 do_install:append() {
     sed -i \