24.02.1
|
#include "arm_compute/AclOpenClExt.h"
#include "arm_compute/core/CL/ICLTensor.h"
#include "src/common/ITensorV2.h"
#include "src/common/Types.h"
#include "src/gpu/cl/ClContext.h"
#include "src/gpu/cl/ClQueue.h"
#include "support/Cast.h"
Go to the source code of this file.
Functions | |
AclStatus | AclGetClContext (AclContext external_ctx, cl_context *opencl_context) |
Extract the underlying OpenCL context used by a given Compute Library context object. More... | |
AclStatus | AclSetClContext (AclContext external_ctx, cl_context opencl_context) |
Set the underlying OpenCL context to be used by a given Compute Library context object. More... | |
AclStatus | AclGetClDevice (AclContext external_ctx, cl_device_id *opencl_device) |
Extract the underlying OpenCL device id used by a given Compute Library context object. More... | |
AclStatus | AclGetClQueue (AclQueue external_queue, cl_command_queue *opencl_queue) |
Extract the underlying OpenCL queue used by a given Compute Library queue object. More... | |
AclStatus | AclSetClQueue (AclQueue external_queue, cl_command_queue opencl_queue) |
Set the underlying OpenCL queue to be used by a given Compute Library queue object. More... | |
AclStatus | AclGetClMem (AclTensor external_tensor, cl_mem *opencl_mem) |
Extract the underlying OpenCL memory object by a given Compute Library tensor object. More... | |
AclStatus AclGetClContext | ( | AclContext | ctx, |
cl_context * | opencl_context | ||
) |
Extract the underlying OpenCL context used by a given Compute Library context object.
[in] | ctx | A valid non-zero context |
[out] | opencl_context | Underlying OpenCL context used |
Definition at line 34 of file AclOpenClExt.cpp.
References AclInvalidArgument, AclInvalidTarget, AclSuccess, arm_compute::get_internal(), arm_compute::GpuOcl, arm_compute::Success, IContext::type(), and arm_compute::detail::validate_internal_context().
Referenced by arm_compute::test::validation::TEST_CASE().
AclStatus AclGetClDevice | ( | AclContext | ctx, |
cl_device_id * | opencl_device | ||
) |
Extract the underlying OpenCL device id used by a given Compute Library context object.
[in] | ctx | A valid non-zero context |
[out] | opencl_device | Underlying OpenCL device used |
Definition at line 88 of file AclOpenClExt.cpp.
References AclInvalidArgument, AclInvalidTarget, AclSuccess, arm_compute::get_internal(), arm_compute::GpuOcl, arm_compute::Success, IContext::type(), and arm_compute::detail::validate_internal_context().
Referenced by arm_compute::test::validation::TEST_CASE().
Extract the underlying OpenCL memory object by a given Compute Library tensor object.
[in] | tensor | A valid non-zero tensor |
[out] | opencl_mem | Underlyig OpenCL memory object |
Definition at line 162 of file AclOpenClExt.cpp.
References AclInvalidArgument, AclInvalidTarget, AclSuccess, arm_compute::get_internal(), arm_compute::GpuOcl, arm_compute::Success, tensor, and arm_compute::detail::validate_internal_tensor().
Extract the underlying OpenCL queue used by a given Compute Library queue object.
[in] | queue | A valid non-zero queue |
[out] | opencl_queue | Underlying OpenCL queue used |
Definition at line 113 of file AclOpenClExt.cpp.
References AclInvalidArgument, AclInvalidTarget, AclSuccess, Header::ctx, arm_compute::get_internal(), arm_compute::GpuOcl, AclQueue_::header, arm_compute::Success, IContext::type(), and arm_compute::detail::validate_internal_queue().
AclStatus AclSetClContext | ( | AclContext | ctx, |
cl_context | opencl_context | ||
) |
Set the underlying OpenCL context to be used by a given Compute Library context object.
[in] | ctx | A valid non-zero context object |
[out] | opencl_context | Underlying OpenCL context to be used |
Definition at line 59 of file AclOpenClExt.cpp.
References AclInvalidArgument, AclInvalidTarget, AclRuntimeError, AclSuccess, AclUnsupportedConfig, arm_compute::get_internal(), arm_compute::GpuOcl, IContext::refcount(), arm_compute::Success, IContext::type(), and arm_compute::detail::validate_internal_context().
Set the underlying OpenCL queue to be used by a given Compute Library queue object.
[in] | queue | A valid non-zero queue object |
[out] | opencl_queue | Underlying OpenCL queue to be used |
Definition at line 138 of file AclOpenClExt.cpp.
References AclInvalidArgument, AclInvalidTarget, AclRuntimeError, AclSuccess, Header::ctx, arm_compute::get_internal(), arm_compute::GpuOcl, AclQueue_::header, arm_compute::Success, IContext::type(), and arm_compute::detail::validate_internal_queue().