From 7ae80a928564eba96c4fef0b91b1c50e1647fb8d Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 25 Oct 2019 18:25:17 +0100 Subject: COMPMID-2549: Add GLES Runtime Context interfaces. * Creates interfaces and concrete classes * Ports GCActivationalLayer * Adapts test framework and relevant tests Change-Id: Ide36cd65ebf185958db3c4a5bebd630fcb2f39b3 Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/2199 Reviewed-by: Pablo Marquez Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- arm_compute/core/GLES_COMPUTE/GCHelpers.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'arm_compute/core/GLES_COMPUTE/GCHelpers.h') diff --git a/arm_compute/core/GLES_COMPUTE/GCHelpers.h b/arm_compute/core/GLES_COMPUTE/GCHelpers.h index 1422afe2b5..ccab6c53d5 100644 --- a/arm_compute/core/GLES_COMPUTE/GCHelpers.h +++ b/arm_compute/core/GLES_COMPUTE/GCHelpers.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -24,13 +24,20 @@ #ifndef __ARM_COMPUTE_GCHELPERS_H__ #define __ARM_COMPUTE_GCHELPERS_H__ +#include "arm_compute/core/GLES_COMPUTE/IGCKernel.h" #include "arm_compute/core/GLES_COMPUTE/OpenGLES.h" #include "arm_compute/core/GPUTarget.h" #include "arm_compute/core/Helpers.h" #include "support/ToolchainSupport.h" +#include +#include + namespace arm_compute { +// Forward declarations +class GCCoreRuntimeContext; + /** Max vector width of an GLES vector */ static constexpr unsigned int max_gc_vector_width = 16; @@ -39,5 +46,14 @@ static constexpr unsigned int max_gc_vector_width = 16; * @return the GPU target */ GPUTarget get_target_from_device(); +/** Creates an GLES kernel + * + * @param[in] ctx A context to be used to create the GLES kernel. + * @param[in] kernel_name The kernel name. + * @param[in] build_opts The build options to be used for the GLES kernel compilation. + * + * @return A GLES kernel + */ +GCKernel create_opengl_kernel(GCCoreRuntimeContext *ctx, const std::string &kernel_name, const std::set &build_opts); } // namespace arm_compute #endif /* __ARM_COMPUTE_GCHELPERS_H__ */ -- cgit v1.2.1