diff options
author | Matthew Bentham <Matthew.Bentham@arm.com> | 2023-07-06 13:13:59 +0000 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2023-07-10 13:09:30 +0000 |
commit | 1d0620447883240776f2510942742b5abb712b19 (patch) | |
tree | cae93de525085e1a245796dbd9e648306e0ab97a /src/cpu | |
parent | 97f83fac63bb8932a34542972f17f25d1a55976b (diff) | |
download | ComputeLibrary-1d0620447883240776f2510942742b5abb712b19.tar.gz |
Do not include headers necessary for logging when logging is disabled
Speeds up compilation by 30% for some files when logging is disabled.
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
Change-Id: Ia479bd50a80616a34e33ead13db8558f8dbaa1aa
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/534480
Tested-by: bsgcomp <bsgcomp@arm.com>
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Comments-Addressed: bsgcomp <bsgcomp@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9880
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: SiCong Li <sicong.li@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/CpuContext.cpp | 6 | ||||
-rw-r--r-- | src/cpu/operators/CpuMatMul.cpp | 1 | ||||
-rw-r--r-- | src/cpu/operators/CpuScale.cpp | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/cpu/CpuContext.cpp b/src/cpu/CpuContext.cpp index d91f917963..7c14891ef8 100644 --- a/src/cpu/CpuContext.cpp +++ b/src/cpu/CpuContext.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Arm Limited. + * Copyright (c) 2021-2023 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -37,6 +37,10 @@ #endif // defined(_WIN64) #endif // !defined(__APPLE__) && !defined(__OpenBSD__) +#ifndef BARE_METAL +#include <thread> +#endif /* BARE_METAL */ + namespace arm_compute { namespace cpu diff --git a/src/cpu/operators/CpuMatMul.cpp b/src/cpu/operators/CpuMatMul.cpp index 515b511044..94013d7262 100644 --- a/src/cpu/operators/CpuMatMul.cpp +++ b/src/cpu/operators/CpuMatMul.cpp @@ -23,6 +23,7 @@ */ #include "src/cpu/operators/CpuMatMul.h" +#include "arm_compute/core/MatMulInfo.h" #include "arm_compute/core/Types.h" #include "arm_compute/core/Validate.h" #include "arm_compute/core/experimental/Types.h" diff --git a/src/cpu/operators/CpuScale.cpp b/src/cpu/operators/CpuScale.cpp index a13a0f56a2..8a712bf088 100644 --- a/src/cpu/operators/CpuScale.cpp +++ b/src/cpu/operators/CpuScale.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Arm Limited. + * Copyright (c) 2021-2023 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -23,7 +23,9 @@ */ #include "src/cpu/operators/CpuScale.h" +#include "arm_compute/core/Helpers.h" #include "arm_compute/runtime/NEON/NEScheduler.h" +#include "arm_compute/core/TensorInfo.h" #include "src/common/utils/Log.h" #include "src/core/utils/ScaleUtils.h" #include "src/cpu/kernels/CpuScaleKernel.h" |