MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / AclGetClQueue

Function AclGetClQueue

src/c/cl/AclOpenClExt.cpp:113–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113extern "C" AclStatus AclGetClQueue(AclQueue external_queue, cl_command_queue *opencl_queue)
114{
115 using namespace arm_compute;
116 IQueue *queue = get_internal(external_queue);
117
118 if (detail::validate_internal_queue(queue) != StatusCode::Success)
119 {
120 return AclStatus::AclInvalidArgument;
121 }
122
123 if (queue->header.ctx->type() != Target::GpuOcl)
124 {
125 return AclStatus::AclInvalidTarget;
126 }
127
128 if (opencl_queue == nullptr)
129 {
130 return AclStatus::AclInvalidArgument;
131 }
132
133 *opencl_queue = utils::cast::polymorphic_downcast<arm_compute::gpu::opencl::ClQueue *>(queue)->cl_queue().get();
134
135 return AclStatus::AclSuccess;
136}
137
138extern "C" AclStatus AclSetClQueue(AclQueue external_queue, cl_command_queue opencl_queue)
139{

Callers

nothing calls this directly

Calls 5

validate_internal_queueFunction · 0.85
cl_queueMethod · 0.80
get_internalFunction · 0.50
typeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected