From 4dcb583c052e14f08809cc9ee420e690264e7bbe Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Tue, 8 May 2018 11:29:05 +0100 Subject: COMPMID-1122: Store the cl_context only in one place Change-Id: I39a8dd34a27f9f891397d58af36bd5f9d152281e Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/130358 Reviewed-by: Pablo Tello Tested-by: Jenkins --- arm_compute/core/CL/CLKernelLibrary.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arm_compute/core/CL') diff --git a/arm_compute/core/CL/CLKernelLibrary.h b/arm_compute/core/CL/CLKernelLibrary.h index 4c42d8e23a..2511966102 100644 --- a/arm_compute/core/CL/CLKernelLibrary.h +++ b/arm_compute/core/CL/CLKernelLibrary.h @@ -261,6 +261,16 @@ public: _device = cl_devices[0]; } } + + /** Accessor for the associated CL context. + * + * @return A CL context. + */ + cl::Context &context() + { + return _context; + } + /** Sets the CL device for which the programs are created. * * @param[in] device A CL device. -- cgit v1.2.1