24.02.1
|
#include "arm_compute/AclEntrypoints.h"
#include "arm_compute/core/Error.h"
#include "src/common/IContext.h"
#include "src/common/utils/Macros.h"
#include "src/common/utils/Validate.h"
Go to the source code of this file.
Functions | |
AclStatus | AclCreateContext (AclContext *external_ctx, AclTarget target, const AclContextOptions *options) |
__cplusplus More... | |
AclStatus | AclDestroyContext (AclContext external_ctx) |
Destroy a given context object. More... | |
AclStatus AclCreateContext | ( | AclContext * | ctx, |
AclTarget | target, | ||
const AclContextOptions * | options | ||
) |
__cplusplus
Create a context object
Context is responsible for retaining internal information and work as an aggregate service mechanism
[in,out] | ctx | A valid non-zero context object if no failure occurs |
[in] | target | Target to create the context for |
[in] | options | Context options to be used for all the kernels that are created under the context |
Returns:
Definition at line 79 of file AclContext.cpp.
References AclInvalidArgument, AclOutOfMemory, AclSuccess, AclUnsupportedTarget, and ARM_COMPUTE_LOG_ERROR_WITH_FUNCNAME_ACL.
Referenced by Context::Context(), and arm_compute::test::validation::TEST_CASE().
AclStatus AclDestroyContext | ( | AclContext | ctx | ) |
Destroy a given context object.
[in] | ctx | A valid context object to destroy |
Returns:
Definition at line 104 of file AclContext.cpp.
References ARM_COMPUTE_LOG_ERROR_WITH_FUNCNAME_ACL, ARM_COMPUTE_RETURN_CENUM_ON_FAILURE, arm_compute::get_internal(), IContext::refcount(), and arm_compute::detail::validate_internal_context().