aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/AclOpenClExt.h
diff options
context:
space:
mode:
authorFelix Thomasmathibalan <felixjohnny.thomasmathibalan@arm.com>2023-09-27 17:46:17 +0100
committerfelixjohnny.thomasmathibalan <felixjohnny.thomasmathibalan@arm.com>2023-09-28 12:08:05 +0000
commitafd38f0c617d6f89b2b4532c6c44f116617e2b6f (patch)
tree03bc7d5a762099989b16a656fa8d397b490ed70e /arm_compute/AclOpenClExt.h
parentbdcb4c148ee2fdeaaddf4cf1e57bbb0de02bb894 (diff)
downloadComputeLibrary-afd38f0c617d6f89b2b4532c6c44f116617e2b6f.tar.gz
Apply clang-format on repository
Code is formatted as per a revised clang format configuration file(not part of this delivery). Version 14.0.6 is used. Exclusion List: - files with .cl extension - files that are not strictly C/C++ (e.g. Android.bp, Sconscript ...) And the following directories - compute_kernel_writer/validation/ - tests/ - include/ - src/core/NEON/kernels/convolution/ - src/core/NEON/kernels/arm_gemm/ - src/core/NEON/kernels/arm_conv/ - data/ There will be a follow up for formatting of .cl files and the files under tests/ and compute_kernel_writer/validation/. Signed-off-by: Felix Thomasmathibalan <felixjohnny.thomasmathibalan@arm.com> Change-Id: Ib7eb1fcf4e7537b9feaefcfc15098a804a3fde0a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10391 Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Diffstat (limited to 'arm_compute/AclOpenClExt.h')
-rw-r--r--arm_compute/AclOpenClExt.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/arm_compute/AclOpenClExt.h b/arm_compute/AclOpenClExt.h
index ef80fd2443..28e918d371 100644
--- a/arm_compute/AclOpenClExt.h
+++ b/arm_compute/AclOpenClExt.h
@@ -37,10 +37,11 @@
#pragma GCC diagnostic pop
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif /* __cplusplus */
-/** Extract the underlying OpenCL context used by a given Compute Library context object
+ /** Extract the underlying OpenCL context used by a given Compute Library context object
*
* @note @ref AclContext should be of an OpenCL backend target
*
@@ -49,9 +50,9 @@ extern "C" {
*
* @return Status code
*/
-AclStatus AclGetClContext(AclContext ctx, cl_context *opencl_context);
+ AclStatus AclGetClContext(AclContext ctx, cl_context *opencl_context);
-/** Extract the underlying OpenCL device id used by a given Compute Library context object
+ /** Extract the underlying OpenCL device id used by a given Compute Library context object
*
* @note @ref AclContext should be of an OpenCL backend target
*
@@ -60,9 +61,9 @@ AclStatus AclGetClContext(AclContext ctx, cl_context *opencl_context);
*
* @return Status code
*/
-AclStatus AclGetClDevice(AclContext ctx, cl_device_id *opencl_device);
+ AclStatus AclGetClDevice(AclContext ctx, cl_device_id *opencl_device);
-/** Set the underlying OpenCL context to be used by a given Compute Library context object
+ /** Set the underlying OpenCL context to be used by a given Compute Library context object
*
* @note @ref AclContext should be of an OpenCL backend target
*
@@ -71,9 +72,9 @@ AclStatus AclGetClDevice(AclContext ctx, cl_device_id *opencl_device);
*
* @return Status code
*/
-AclStatus AclSetClContext(AclContext ctx, cl_context opencl_context);
+ AclStatus AclSetClContext(AclContext ctx, cl_context opencl_context);
-/** Extract the underlying OpenCL queue used by a given Compute Library queue object
+ /** Extract the underlying OpenCL queue used by a given Compute Library queue object
*
* @note @ref AclQueue should be of an OpenCL backend target
* @note @ref AclQueue refcount should be 0, meaning not used by other objects
@@ -83,9 +84,9 @@ AclStatus AclSetClContext(AclContext ctx, cl_context opencl_context);
*
* @return Status code
*/
-AclStatus AclGetClQueue(AclQueue queue, cl_command_queue *opencl_queue);
+ AclStatus AclGetClQueue(AclQueue queue, cl_command_queue *opencl_queue);
-/** Set the underlying OpenCL queue to be used by a given Compute Library queue object
+ /** Set the underlying OpenCL queue to be used by a given Compute Library queue object
*
* @note @ref AclQueue should be of an OpenCL backend target
* @note opecl_queue needs to be created from the same context that the AclContext that the queue will use
@@ -95,16 +96,16 @@ AclStatus AclGetClQueue(AclQueue queue, cl_command_queue *opencl_queue);
*
* @return Status code
*/
-AclStatus AclSetClQueue(AclQueue queue, cl_command_queue opencl_queue);
+ AclStatus AclSetClQueue(AclQueue queue, cl_command_queue opencl_queue);
-/** Extract the underlying OpenCL memory object by a given Compute Library tensor object
+ /** 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);
+ AclStatus AclGetClMem(AclTensor tensor, cl_mem *opencl_mem);
#ifdef __cplusplus
}