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

Method Submit

preempt/src/xqueue/async_xqueue.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void AsyncXQueue::Submit(std::shared_ptr<HwCommand> hw_cmd)
45{
46 hw_cmd->OnSubmit(shared_from_this());
47 hw_cmd->SetIdx(next_hw_cmd_idx_.fetch_add(1));
48 kHwQueue->OnHwCommandSubmit(hw_cmd);
49 cmd_buf_->Enqueue(hw_cmd);
50 if (hw_cmd->GetProps(kCommandPropertyBlockingSubmit)) hw_cmd->WaitUntil(kCommandStateInFlight);
51}
52
53std::shared_ptr<XQueueWaitAllCommand> AsyncXQueue::SubmitWaitAll()
54{

Callers 15

XQueueSubmitFunction · 0.80
XEnqueueNDRangeKernelFunction · 0.80
XEventRecordFunction · 0.80
XSubmitTaskFunction · 0.80
XMemcpyAsyncFunction · 0.80
XLaunchKernelFunction · 0.80
XModuleLaunchKernelFunction · 0.80
XExtModuleLaunchKernelFunction · 0.80
XEventRecordFunction · 0.80
XEventRecordWithFlagsFunction · 0.80
XStreamWaitEventFunction · 0.80

Calls 6

OnSubmitMethod · 0.80
SetIdxMethod · 0.80
EnqueueMethod · 0.80
GetPropsMethod · 0.80
WaitUntilMethod · 0.80
OnHwCommandSubmitMethod · 0.45

Tested by

no test coverage detected