diff options
author | Sayed Adel <seiko@imavr.com> | 2021-11-10 01:37:12 +0200 |
---|---|---|
committer | Sayed Adel <seiko@imavr.com> | 2022-01-19 07:54:40 +0200 |
commit | 2946e025793820f33503f201d343a7a47e5cb8c2 (patch) | |
tree | f4ca2beae3658af0b832587a63561d1ff1435454 /numpy/core/setup.py | |
parent | c30876f6411ef0c5365a8e4cf40cc3d4ba41196c (diff) | |
download | numpy-2946e025793820f33503f201d343a7a47e5cb8c2.tar.gz |
ENH, SIMD: replace SVML/tanh with universal intrinsics
To 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.
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 3bf6f6250..100f2fc80 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -1003,6 +1003,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'), @@ -1033,8 +1034,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. |