diff options
author | Gunes Bayir <gunes.bayir@arm.com> | 2022-11-29 13:12:08 +0000 |
---|---|---|
committer | Gunes Bayir <gunes.bayir@arm.com> | 2022-11-30 11:56:27 +0000 |
commit | f16973b8b4605f12608bffa9f0ca6ed590202d41 (patch) | |
tree | de17199fd7b8cddb9ffcfdcc21285e4cf166c126 /src/cpu/kernels/CpuElementwiseKernel.cpp | |
parent | 404462af4ca002ece819161a03a4bdb19a87abf2 (diff) | |
download | ComputeLibrary-f16973b8b4605f12608bffa9f0ca6ed590202d41.tar.gz |
Fix build error for unused variables in data type specific builds
The fp32 mws selection variables are guarded because they are flagged as unused when data type support does not include fp32.
Resolves: COMPMID-5761
Change-Id: I7ac783e3d5ca51868b562ab879d03e02140b51a1
Signed-off-by: Gunes Bayir <gunes.bayir@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8707
Reviewed-by: Jakub Sujak <jakub.sujak@arm.com>
Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/cpu/kernels/CpuElementwiseKernel.cpp')
-rw-r--r-- | src/cpu/kernels/CpuElementwiseKernel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/kernels/CpuElementwiseKernel.cpp b/src/cpu/kernels/CpuElementwiseKernel.cpp index e76b05f296..a045855b1a 100644 --- a/src/cpu/kernels/CpuElementwiseKernel.cpp +++ b/src/cpu/kernels/CpuElementwiseKernel.cpp @@ -32,6 +32,7 @@ #include <arm_neon.h> +#if defined(ENABLE_FP32_KERNELS) namespace { static constexpr size_t default_min_max_mws_N1_fp32_neon = 25308; @@ -39,6 +40,7 @@ namespace static constexpr size_t default_div_mws_N1_fp32_neon = 19043; static constexpr size_t default_div_mws_V1_fp32_neon = 25511; } +#endif /* ENABLE_FP32_KERNELS */ namespace arm_compute { |