elpa: Fix build on ppc64le (#33639)

This commit is contained in:
Dave Love 2022-11-10 13:51:17 +00:00 committed by GitHub
parent 5b080d63fb
commit 6dd3c78924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,13 +135,15 @@ def configure_args(self):
options += self.with_or_without("mpi")
# TODO: --disable-sse-assembly, --enable-sparc64, --enable-neon-arch64
simd_features = ["vsx", "sse", "avx", "avx2", "avx512", "sve128", "sve256", "sve512"]
# Don't include vsx; as of 2022.05 it fails (reported upstream).
# Altivec SSE intrinsics are used anyway.
simd_features = ["sse", "avx", "avx2", "avx512", "sve128", "sve256", "sve512"]
for feature in simd_features:
msg = "--enable-{0}" if feature in spec.target else "--disable-{0}"
options.append(msg.format(feature))
if spec.target.family == "aarch64":
if spec.target.family != "x86_64":
options.append("--disable-sse-assembly")
if "%aocc" in spec: