! * 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. */
| 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 |
nothing calls this directly
no test coverage detected