MCPcopy Create free account
hub / github.com/XpuOS/xsched / GetOverrideCommandQueue

Function GetOverrideCommandQueue

platforms/opencl/shim/src/cmdq.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39EXPORT_C_FUNC XResult GetOverrideCommandQueue(int32_t queue_idx, cl_command_queue *cmdq)
40{
41 if (cmdq == nullptr || queue_idx < 0) return kXSchedErrorInvalidValue;
42 std::lock_guard<std::mutex> lock(g_cmdq_mtx);
43 auto it = g_cmdqs.find(queue_idx);
44 if (it == g_cmdqs.end()) return kXSchedErrorNotFound;
45 *cmdq = it->second;
46 return kXSchedSuccess;
47}
48
49EXPORT_C_FUNC XResult DeleteOverrideCommandQueue(int32_t queue_idx)
50{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected