From 0985a73ffa4090b862829b92bf9df09bb2783efc Mon Sep 17 00:00:00 2001 From: Sayed Adel Date: Fri, 11 Dec 2020 19:45:12 +0000 Subject: ENH, SIMD: Ditching the old CPU dispatcher(Arithmetic) The first patch in a series of pull-requests aims to facilitate the migration process to our new SIMD interface(NPYV). It is basically a process that focuses on getting rid of the main umath SIMD source `simd.inc`, which contains almost all SIMD kernels, by splitting it into several dispatch-able sources without changing the base code, which facilitates the review process in order to speed up access to the nominal target. In this patch, we have moved the arithmetic operations of real and complex for single/double precision to the new CPU dispatcher. NOTE: previously, the SIMD code of AVX2 and AVX512F for single/double precision wasn't dispatched in runtime before. --- numpy/core/setup.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/core/setup.py') diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 2ec5e1a64..2e020a595 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -916,8 +916,10 @@ def configuration(parent_package='',top_path=None): join('src', 'umath', 'funcs.inc.src'), join('src', 'umath', 'simd.inc.src'), join('src', 'umath', 'loops.h.src'), + join('src', 'umath', 'loops_utils.h.src'), join('src', 'umath', 'loops.c.src'), join('src', 'umath', 'loops_unary_fp.dispatch.c.src'), + join('src', 'umath', 'loops_arithm_fp.dispatch.c.src'), join('src', 'umath', 'matmul.h.src'), join('src', 'umath', 'matmul.c.src'), join('src', 'umath', 'clip.h.src'), -- cgit v1.2.1