aboutsummaryrefslogtreecommitdiff
path: root/src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/Common.h
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2022-03-30 12:23:10 +0100
committerGiorgio Arena <giorgio.arena@arm.com>2022-03-31 11:08:38 +0000
commit892b70a8bb338f0c10c06112c41f6c8e8c3495f9 (patch)
tree0a855ad5854335a6c9c48ad30312d3e0b0f0235d /src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/Common.h
parent36a1c119cfabfe3da6ea3ef69a0a21929cb418d6 (diff)
downloadComputeLibrary-892b70a8bb338f0c10c06112c41f6c8e8c3495f9.tar.gz
Fix embedded kernel header inclusion for dynamic fusion
Resolves: COMPMID-5155 Signed-off-by: Giorgio Arena <giorgio.arena@arm.com> Change-Id: Ic16fb12bfa748cac92d73019d08eea53bf470c12 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7354 Reviewed-by: SiCong Li <sicong.li@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/Common.h')
-rw-r--r--src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/Common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/Common.h b/src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/Common.h
index 6e1291cdd5..4c720ea1aa 100644
--- a/src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/Common.h
+++ b/src/core/experimental/dynamic_fusion/ClKernelBuildingImpl/Common.h
@@ -27,6 +27,7 @@
#define ARM_COMPUTE_EXPERIMENTAL_DYNAMICFUSION_IMPL_COMMON_H
#include "arm_compute/core/CL/CLCompileContext.h"
+#include "arm_compute/core/CL/CLKernelLibrary.h"
#include "arm_compute/core/Error.h"
#include "arm_compute/core/GPUTarget.h"
#include "src/core/common/Macros.h"
@@ -494,7 +495,11 @@ public:
for(auto &header : headers_list)
{
+#if defined(EMBEDDED_KERNELS)
+ code += CLKernelLibrary::get().get_program(header).first;
+#else // defined(EMBEDDED_KERNELS)
code += "#include \"" + header + "\"\n";
+#endif // defined(EMBEDDED_KERNELS)
}
for(auto &macros : additional_macros)