MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / updateDefault

Method updateDefault

include/CL/opencl.hpp:9080–9090  ·  view source on GitHub ↗

! * Modify the default device command queue to be used for subsequent kernels. * This can update the default command queue for a device repeatedly to account * for kernels that rely on the default. * @return updated default device command queue. */

Source from the content-addressed store, hash-verified

9078 * @return updated default device command queue.
9079 */
9080 static DeviceCommandQueue updateDefault(const Context &context, const Device &device, const DeviceCommandQueue &default_queue, cl_int *err = nullptr)
9081 {
9082 cl_int error;
9083 error = clSetDefaultDeviceCommandQueue(context.get(), device.get(), default_queue.get());
9084
9085 detail::errHandler(error, __SET_DEFAULT_DEVICE_COMMAND_QUEUE_ERR);
9086 if (err != nullptr) {
9087 *err = error;
9088 }
9089 return default_queue;
9090 }
9091
9092 /*!
9093 * Return the current default command queue for the specified command queue

Callers

nothing calls this directly

Calls 2

errHandlerFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected