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

Function XEventQueryStatus

platforms/levelzero/shim/src/shim.cpp:275–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275ze_result_t XEventQueryStatus(ze_event_handle_t hEvent)
276{
277 ze_command_list_handle_t cmdlist = g_event_to_cmdlist.Get(hEvent, nullptr);
278 if (cmdlist == nullptr) {
279 auto cmd = g_event_to_cmd.Get(hEvent, nullptr);
280 if (cmd == nullptr) return Driver::EventQueryStatus(hEvent);
281 return cmd->EventQueryStatus();
282 }
283
284 auto cmd = g_cmdlist_to_cmd.Get(cmdlist, nullptr);
285 if (cmd == nullptr) return Driver::EventQueryStatus(hEvent);
286 cmd->WaitUntil(kCommandStateInFlight);
287 return Driver::EventQueryStatus(hEvent);
288}
289
290} // namespace xsched::levelzero

Callers

nothing calls this directly

Calls 3

EventQueryStatusMethod · 0.80
WaitUntilMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected