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

Function DeleteOverrideCommandQueue

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

Source from the content-addressed store, hash-verified

47}
48
49EXPORT_C_FUNC XResult DeleteOverrideCommandQueue(int32_t queue_idx)
50{
51 std::lock_guard<std::mutex> lock(g_cmdq_mtx);
52 auto it = g_cmdqs.find(queue_idx);
53 if (it == g_cmdqs.end()) return kXSchedErrorNotFound;
54 // Release the command queue to allow being deleted by the driver.
55 OCL_ASSERT(Driver::ReleaseCommandQueue(it->second));
56 g_cmdqs.erase(it);
57 return kXSchedSuccess;
58}
59
60namespace xsched::opencl
61{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected