diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-03-06 08:59:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 08:59:44 +0100 |
commit | b4f6b0b9d2af3e5a7ed0bfb51c8d692298bc2dde (patch) | |
tree | 85b6812cc1941e4e724e4e9b1d97fbf5764e74d5 /numpy/distutils/ccompiler_opt.py | |
parent | e76c6bca202c46b202a65de4e29698115d882d66 (diff) | |
parent | fccb005a6c995923d47aeda4e71a1d2a4a07f703 (diff) | |
download | numpy-b4f6b0b9d2af3e5a7ed0bfb51c8d692298bc2dde.tar.gz |
Merge pull request #22982 from yamadafuyuka/add_fujitsuccompiler_and_SSL2
ENH: add support for fujitsu C/C++ compiler and SSL2 to numpy.
Diffstat (limited to 'numpy/distutils/ccompiler_opt.py')
-rw-r--r-- | numpy/distutils/ccompiler_opt.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/numpy/distutils/ccompiler_opt.py b/numpy/distutils/ccompiler_opt.py index 781404446..4904dd3dd 100644 --- a/numpy/distutils/ccompiler_opt.py +++ b/numpy/distutils/ccompiler_opt.py @@ -229,6 +229,11 @@ class _Config: native = None, opt = '/O2', werror = '/WX', + ), + fcc = dict( + native = '-mcpu=a64fx', + opt = None, + werror = None, ) ) conf_min_features = dict( @@ -342,7 +347,7 @@ class _Config: return {} on_x86 = self.cc_on_x86 or self.cc_on_x64 - is_unix = self.cc_is_gcc or self.cc_is_clang + is_unix = self.cc_is_gcc or self.cc_is_clang or self.cc_is_fcc if on_x86 and is_unix: return dict( SSE = dict(flags="-msse"), @@ -989,12 +994,14 @@ class _CCompiler: ("cc_is_iccw", ".*(intelw|intelemw|iccw).*", ""), ("cc_is_icc", ".*(intel|icc).*", ""), # intel unix like ("cc_is_msvc", ".*msvc.*", ""), + ("cc_is_fcc", ".*fcc.*", ""), # undefined compiler will be treat it as gcc ("cc_is_nocc", "", ""), ) detect_args = ( ("cc_has_debug", ".*(O0|Od|ggdb|coverage|debug:full).*", ""), - ("cc_has_native", ".*(-march=native|-xHost|/QxHost).*", ""), + ("cc_has_native", + ".*(-march=native|-xHost|/QxHost|-mcpu=a64fx).*", ""), # in case if the class run with -DNPY_DISABLE_OPTIMIZATION ("cc_noopt", ".*DISABLE_OPT.*", ""), ) @@ -1055,7 +1062,7 @@ class _CCompiler: break self.cc_name = "unknown" - for name in ("gcc", "clang", "iccw", "icc", "msvc"): + for name in ("gcc", "clang", "iccw", "icc", "msvc", "fcc"): if getattr(self, "cc_is_" + name): self.cc_name = name break |