MCPcopy Create free account
hub / github.com/a2flo/floor / queue_or_default_queue

Method queue_or_default_queue

src/device/opencl/opencl_buffer.cpp:222–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222cl_command_queue opencl_buffer::queue_or_default_queue(const device_queue* cqueue) const {
223 if(cqueue != nullptr) return (cl_command_queue)const_cast<void*>(cqueue->get_queue_ptr());
224 return (cl_command_queue)const_cast<void*>(((const opencl_context&)*dev.context).get_device_default_queue((const opencl_device&)dev)->get_queue_ptr());
225}
226
227} // namespace fl
228

Callers

nothing calls this directly

Calls 2

get_queue_ptrMethod · 0.45

Tested by

no test coverage detected