aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/kernels/mul/generic/neon/list.h
diff options
context:
space:
mode:
authorPablo Marquez Tello <pablo.tello@arm.com>2023-11-20 14:20:01 +0000
committerPablo Marquez Tello <pablo.tello@arm.com>2023-11-27 15:28:19 +0000
commit568aab689c6f0d293a99ea554786a22c76be18b4 (patch)
treeaf141ee56d3d34e5c7cb88a530499f53ebc67364 /src/cpu/kernels/mul/generic/neon/list.h
parentded5b182675e3166e947a8eb637b5b1e925816ab (diff)
downloadComputeLibrary-568aab689c6f0d293a99ea554786a22c76be18b4.tar.gz
CpuMul changes to enable fp16 in armv8a multi_isa builds
* Moved fp16 and fp32 to their corresponding files src/cpu/kernels/mul/generic/neon/fp16.cpp and src/cpu/kernels/mul/generic/neon/fp32.cpp * Changes in filelist.json: added a new fp16.cpp file for the float16_t kernels * Partially resolves MLCE-1102 Change-Id: I88f24cf034c11b55ff84644b182ba76c7cb94296 Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10778 Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com>
Diffstat (limited to 'src/cpu/kernels/mul/generic/neon/list.h')
-rw-r--r--src/cpu/kernels/mul/generic/neon/list.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/cpu/kernels/mul/generic/neon/list.h b/src/cpu/kernels/mul/generic/neon/list.h
new file mode 100644
index 0000000000..710cb68b72
--- /dev/null
+++ b/src/cpu/kernels/mul/generic/neon/list.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2023 Arm Limited.
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+#ifndef ACL_SRC_CPU_KERNELS_MUL_GENERIC_NEON_LIST_H
+#define ACL_SRC_CPU_KERNELS_MUL_GENERIC_NEON_LIST_H
+namespace arm_compute
+{
+namespace cpu
+{
+#define DECLARE_MUL_KERNEL(func_name) \
+ void func_name(const ITensor *src1, const ITensor *src2, ITensor *out, const Window &window, float scale)
+
+DECLARE_MUL_KERNEL(mul_F32_F32_F32);
+DECLARE_MUL_KERNEL(mul_F16_F16_F16);
+#undef DECLARE_MUL_KERNEL
+} // namespace cpu
+} // namespace arm_compute
+#endif // ACL_SRC_CPU_KERNELS_MUL_GENERIC_NEON_LIST_H