summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/gnu.py
diff options
context:
space:
mode:
authorPradipta Ghosh <pradghos@in.ibm.com>2021-12-09 03:16:36 -0800
committerSayed Adel <seiko@imavr.com>2021-12-14 03:49:12 +0200
commitaea715bacd7497d30fe168977be430d64588944b (patch)
treed5eca36537c47d26edb5c0c5cc440459db103f39 /numpy/distutils/fcompiler/gnu.py
parent43c113dd7aa36ef833315035858ea98a7b4732c5 (diff)
downloadnumpy-aea715bacd7497d30fe168977be430d64588944b.tar.gz
Extending CPU feature detection framework to support IBM Z SIMD
We would like to extend CPU feature detection infrastructure for IBM Z CPU features. Eventually It will help to add and enable Z specific SIMD builtins and instructions. As part of the PR, we have extended ccompiler_opt.py, npy_cpu_features.c.src, npy_cpu_features.h, other files for Z CPU feature detection and added test files for VX/VXE/VXE2 in distutils/checks.
Diffstat (limited to 'numpy/distutils/fcompiler/gnu.py')
-rw-r--r--numpy/distutils/fcompiler/gnu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py
index 39178071d..d8143328e 100644
--- a/numpy/distutils/fcompiler/gnu.py
+++ b/numpy/distutils/fcompiler/gnu.py
@@ -324,7 +324,7 @@ class Gnu95FCompiler(GnuFCompiler):
c_archs[c_archs.index("i386")] = "i686"
# check the arches the Fortran compiler supports, and compare with
# arch flags from C compiler
- for arch in ["ppc", "i686", "x86_64", "ppc64"]:
+ for arch in ["ppc", "i686", "x86_64", "ppc64", "s390x"]:
if _can_target(cmd, arch) and arch in c_archs:
arch_flags.extend(["-arch", arch])
return arch_flags