From 5fcf22dadf092efd7aafb359f9229aa270eb1129 Mon Sep 17 00:00:00 2001 From: "Francesco.Petrogalli@arm.com" Date: Tue, 5 Apr 2022 10:31:08 +0000 Subject: [arm_gemm] Import fixed-format kernels from gemm_linux. This is a No Functional Change Intended (NFCI) patch. It imports the kernel in the code, but the interface to select them and expose the format of the weight tensors to the user will be provided in a subsequent patch. Kernels and kernel selection code in arm_gemm has been provided by David.Mansell . The kernels are not compiled in the library by default, but need to be selected via the `scons` option `experimental_fixed_format_kernels=1`. Resolves: ONCPUML-829 Signed-off-by: Francesco.Petrogalli@arm.com Change-Id: If00ccb2b9b7221e01b214cf9783111226ccc8bf4 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7380 Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice Reviewed-by: SiCong Li Comments-Addressed: Arm Jenkins --- SConscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'SConscript') diff --git a/SConscript b/SConscript index 4a832fcfaa..358f9dd971 100644 --- a/SConscript +++ b/SConscript @@ -500,6 +500,10 @@ if env['experimental_dynamic_fusion']: lib_files += filelist['experimental']['dynamic_fusion'] arm_compute_env.Append(CPPDEFINES = ['ENABLE_EXPERIMENTAL_DYNAMIC_FUSION']) +# Fixed format GEMM kernels. +if env['experimental_fixed_format_kernels']: + arm_compute_env.Append(CPPDEFINES = ['ENABLE_FIXED_FORMAT_KERNELS']) + # Logging files if env["logging"]: @@ -576,6 +580,9 @@ if env['neon']: else: attrs = get_attrs_list(env, env['data_type_support'], env['data_layout_support']) + if env['experimental_fixed_format_kernels']: + attrs.append("experimental_fixed_format_kernels") + # Setup data-type and data-layout files to include cpu_operators = custom_operators if use_custom_ops else filelist['cpu']['operators'].keys() cpu_ops_to_build = resolve_operator_dependencies(filelist, cpu_operators, 'cpu') -- cgit v1.2.1