Function pocky_opencl_queues_create_all

Function Documentation

cl_int pocky_opencl_queues_create_all(cl_context ctx, cl_uint *num_queues, cl_command_queue **queues)

Creates all command queues for the devices in the given context.

Important

Memory for the output list queues is allocated by this function, but the user must free that memory to avoid a memory leak.

Parameters:
  • ctx[in] Context for the selected devices

  • num_queues[out] Number of created command queues

  • queues[out] Array of created command queues

Returns:

On success, CL_SUCCESS, otherwise an OpenCL error code