diff options
author | Matti Picus <matti.picus@gmail.com> | 2022-02-10 20:17:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 20:17:34 +0200 |
commit | 75edab9f7a7d95ecc62efc1b3b92642b6d45762d (patch) | |
tree | d0d967b67663856ce4600214a0f1098dfea2a370 /numpy/core/setup.py | |
parent | 06ac5080f05cb489d9421949051870b5a0146e77 (diff) | |
parent | d99bf0eff0bc6a9fee1dc7633d852cac176e4281 (diff) | |
download | numpy-75edab9f7a7d95ecc62efc1b3b92642b6d45762d.tar.gz |
Merge pull request #20363 from seiko2plus/svml2npyv/tanh_f32
SIMD: Replace SVML/ASM of tanh(f32, f64) with universal intrinsics
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 9704cff0a..d002377c6 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -1014,6 +1014,7 @@ def configuration(parent_package='',top_path=None): join('src', 'umath', 'loops_trigonometric.dispatch.c.src'), join('src', 'umath', 'loops_umath_fp.dispatch.c.src'), join('src', 'umath', 'loops_exponent_log.dispatch.c.src'), + join('src', 'umath', 'loops_hyperbolic.dispatch.c.src'), join('src', 'umath', 'matmul.h.src'), join('src', 'umath', 'matmul.c.src'), join('src', 'umath', 'clip.h'), @@ -1045,8 +1046,17 @@ def configuration(parent_package='',top_path=None): svml_path = join('numpy', 'core', 'src', 'umath', 'svml') svml_objs = [] + # we have converted the following into universal intrinsics + # so we can bring the benefits of performance for all platforms + # not just for avx512 on linux without performance/accuracy regression, + # actually the other way around, better performance and + # after all maintainable code. + svml_filter = ( + 'svml_z0_tanh_d_la.s', 'svml_z0_tanh_s_la.s' + ) if can_link_svml() and check_svml_submodule(svml_path): svml_objs = glob.glob(svml_path + '/**/*.s', recursive=True) + svml_objs = [o for o in svml_objs if not o.endswith(svml_filter)] config.add_extension('_multiarray_umath', # Forcing C language even though we have C++ sources. |