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

Function OpenclQueueCreate

platforms/example/hal/src/opencl_queue.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44extern "C" XResult OpenclQueueCreate(HwQueueHandle *hwq, cl_command_queue cmdq)
45{
46 HwQueueHandle hwq_h = (HwQueueHandle)cmdq;
47 auto res = xsched::preempt::HwQueueManager::Add(hwq_h, [&]() {
48 return std::make_shared<OpenclQueue>(cmdq);
49 });
50 if (res == kXSchedSuccess) *hwq = hwq_h;
51 return res;
52}

Callers 1

VecAddTaskMethod · 0.85

Calls

no outgoing calls

Tested by 1

VecAddTaskMethod · 0.68