aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/CL/CLKernelLibrary.h
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-05-08 11:29:05 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:51:17 +0000
commit4dcb583c052e14f08809cc9ee420e690264e7bbe (patch)
tree9e237b0d07d54a9f53d74ce1103a502f25a5d388 /arm_compute/core/CL/CLKernelLibrary.h
parentd24af8a3e8f7cbd38fd3142056241c0c9f63e46a (diff)
downloadComputeLibrary-4dcb583c052e14f08809cc9ee420e690264e7bbe.tar.gz
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 <pablo.tello@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/CL/CLKernelLibrary.h')
-rw-r--r--arm_compute/core/CL/CLKernelLibrary.h10
1 files changed, 10 insertions, 0 deletions
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.