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

Function XCommandQueueSynchronize

platforms/levelzero/shim/src/shim.cpp:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76ze_result_t XCommandQueueSynchronize(ze_command_queue_handle_t hCommandQueue, uint64_t timeout)
77{
78 XDEBG("XCommandQueueSynchronize(cmdq: %p, timeout: " FMT_64D ")", hCommandQueue, timeout);
79 auto xq = HwQueueManager::GetXQueue(GetHwQueueHandle(hCommandQueue));
80 if (xq == nullptr) return Driver::CommandQueueSynchronize(hCommandQueue, timeout);
81 xq->WaitAll();
82 return ZE_RESULT_SUCCESS;
83}
84
85ze_result_t XCommandListCreate(ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_list_desc_t *desc, ze_command_list_handle_t *phCommandList)
86{

Callers

nothing calls this directly

Calls 2

WaitAllMethod · 0.80
GetHwQueueHandleFunction · 0.50

Tested by

no test coverage detected