| 136 | } |
| 137 | |
| 138 | extern "C" AclStatus AclSetClQueue(AclQueue external_queue, cl_command_queue opencl_queue) |
| 139 | { |
| 140 | using namespace arm_compute; |
| 141 | IQueue *queue = get_internal(external_queue); |
| 142 | |
| 143 | if (detail::validate_internal_queue(queue) != StatusCode::Success) |
| 144 | { |
| 145 | return AclStatus::AclInvalidArgument; |
| 146 | } |
| 147 | |
| 148 | if (queue->header.ctx->type() != Target::GpuOcl) |
| 149 | { |
| 150 | return AclStatus::AclInvalidTarget; |
| 151 | } |
| 152 | |
| 153 | auto cl_queue = utils::cast::polymorphic_downcast<arm_compute::gpu::opencl::ClQueue *>(queue); |
| 154 | if (!cl_queue->set_cl_queue(::cl::CommandQueue(opencl_queue))) |
| 155 | { |
| 156 | return AclStatus::AclRuntimeError; |
| 157 | } |
| 158 | |
| 159 | return AclStatus::AclSuccess; |
| 160 | } |
| 161 | |
| 162 | extern "C" AclStatus AclGetClMem(AclTensor external_tensor, cl_mem *opencl_mem) |
| 163 | { |
nothing calls this directly
no test coverage detected