From fccb005a6c995923d47aeda4e71a1d2a4a07f703 Mon Sep 17 00:00:00 2001 From: yamadafuyuka Date: Wed, 28 Dec 2022 12:59:07 +0900 Subject: ENH: add support for fujitsu C/C++ compiler and SSL2 to numpy. --- numpy/core/include/numpy/npy_cpu.h | 2 +- numpy/core/tests/test_multiarray.py | 3 +- numpy/core/tests/test_scalarmath.py | 3 +- numpy/core/tests/test_umath.py | 4 +++ numpy/distutils/ccompiler.py | 2 ++ numpy/distutils/ccompiler_opt.py | 13 ++++++-- numpy/distutils/fujitsuccompiler.py | 28 ++++++++++++++++ numpy/distutils/system_info.py | 52 +++++++++++++++++++++++++++-- numpy/distutils/tests/test_ccompiler_opt.py | 6 ++-- numpy/testing/_private/utils.py | 19 ++++++++++- numpy/tests/test_public_api.py | 1 + 11 files changed, 121 insertions(+), 12 deletions(-) create mode 100644 numpy/distutils/fujitsuccompiler.py (limited to 'numpy') diff --git a/numpy/core/include/numpy/npy_cpu.h b/numpy/core/include/numpy/npy_cpu.h index 78d229e7d..a19f8e6bb 100644 --- a/numpy/core/include/numpy/npy_cpu.h +++ b/numpy/core/include/numpy/npy_cpu.h @@ -77,7 +77,7 @@ #elif defined(__ARMEL__) || defined(__AARCH64EL__) || defined(_M_ARM64) #if defined(__ARM_32BIT_STATE) #define NPY_CPU_ARMEL_AARCH32 - #elif defined(__ARM_64BIT_STATE) || defined(_M_ARM64) + #elif defined(__ARM_64BIT_STATE) || defined(_M_ARM64) || defined(__AARCH64EL__) #define NPY_CPU_ARMEL_AARCH64 #else #define NPY_CPU_ARMEL diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index a7b72d54f..1911bd1d2 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -28,7 +28,7 @@ from numpy.testing import ( assert_, assert_raises, assert_warns, assert_equal, assert_almost_equal, assert_array_equal, assert_raises_regex, assert_array_almost_equal, assert_allclose, IS_PYPY, IS_PYSTON, HAS_REFCOUNT, assert_array_less, - runstring, temppath, suppress_warnings, break_cycles, + runstring, temppath, suppress_warnings, break_cycles, _SUPPORTS_SVE, ) from numpy.testing._private.utils import requires_memory, _no_tracing from numpy.core.tests._locales import CommaDecimalPointLocale @@ -9857,6 +9857,7 @@ class TestViewDtype: assert_array_equal(x.view('