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

Function XCommandQueueCreate

platforms/levelzero/shim/src/shim.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20static ObjectMap<ze_event_handle_t, std::shared_ptr<ZeKernelCommand>> g_event_to_cmd;
21
22ze_result_t XCommandQueueCreate(ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_queue_desc_t *desc, ze_command_queue_handle_t *phCommandQueue)
23{
24 ze_result_t res = Driver::CommandQueueCreate(hContext, hDevice, desc, phCommandQueue);
25 if (res != ZE_RESULT_SUCCESS) return res;
26 XQueueManager::AutoCreate([&](HwQueueHandle *hwq) { return ZeQueueCreate(hwq, hDevice, *phCommandQueue); });
27 XDEBG("XCommandQueueCreate(cmdq: %p, dev: %p)", *phCommandQueue, hDevice);
28 return res;
29}
30
31ze_result_t XCommandQueueDestroy(ze_command_queue_handle_t hCommandQueue)
32{

Callers

nothing calls this directly

Calls 1

ZeQueueCreateFunction · 0.85

Tested by

no test coverage detected