aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/AclOpenClExt.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/AclOpenClExt.h')
-rw-r--r--arm_compute/AclOpenClExt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arm_compute/AclOpenClExt.h b/arm_compute/AclOpenClExt.h
index f71cd37299..15b233ca12 100644
--- a/arm_compute/AclOpenClExt.h
+++ b/arm_compute/AclOpenClExt.h
@@ -63,6 +63,15 @@ AclStatus AclGetClContext(AclContext ctx, cl_context *opencl_context);
*/
AclStatus AclSetClContext(AclContext ctx, cl_context opencl_context);
+/** Extract the underlying OpenCL memory object by a given Compute Library tensor object
+ *
+ * @param[in] tensor A valid non-zero tensor
+ * @param[out] opencl_mem Underlyig OpenCL memory object
+ *
+ * @return Status code
+ */
+AclStatus AclGetClMem(AclTensor tensor, cl_mem *opencl_mem);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */