@@ -5302,7 +5302,9 @@ typedef enum ur_queue_info_t {
53025302 ///< The reference count returned should be considered immediately stale.
53035303 ///< It is unsuitable for general use in applications. This feature is
53045304 ///< provided for identifying memory leaks.
5305- UR_QUEUE_INFO_SIZE = 5, ///< [uint32_t] The size of the queue
5305+ UR_QUEUE_INFO_SIZE = 5, ///< [uint32_t] The size of the queue on the device. Only a valid query
5306+ ///< if the queue was created with the `ON_DEVICE` queue flag, otherwise
5307+ ///< `::urQueueGetInfo` will return `::UR_RESULT_ERROR_INVALID_QUEUE`.
53065308 UR_QUEUE_INFO_EMPTY = 6, ///< [::ur_bool_t] return true if the queue was empty at the time of the
53075309 ///< query
53085310 /// @cond
@@ -5317,7 +5319,8 @@ typedef uint32_t ur_queue_flags_t;
53175319typedef enum ur_queue_flag_t {
53185320 UR_QUEUE_FLAG_OUT_OF_ORDER_EXEC_MODE_ENABLE = UR_BIT(0), ///< Enable/disable out of order execution
53195321 UR_QUEUE_FLAG_PROFILING_ENABLE = UR_BIT(1), ///< Enable/disable profiling
5320- UR_QUEUE_FLAG_ON_DEVICE = UR_BIT(2), ///< Is a device queue
5322+ UR_QUEUE_FLAG_ON_DEVICE = UR_BIT(2), ///< Is a device queue. If this is enabled `OUT_OF_ORDER_EXEC_MODE_ENABLE`
5323+ ///< must also be enabled.
53215324 UR_QUEUE_FLAG_ON_DEVICE_DEFAULT = UR_BIT(3), ///< Is the default queue for a device
53225325 UR_QUEUE_FLAG_DISCARD_EVENTS = UR_BIT(4), ///< Events will be discarded
53235326 UR_QUEUE_FLAG_PRIORITY_LOW = UR_BIT(5), ///< Low priority queue
@@ -5362,7 +5365,7 @@ typedef enum ur_queue_flag_t {
53625365/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
53635366/// + `propSize != 0 && pPropValue == NULL`
53645367/// + `pPropValue == NULL && pPropSizeRet == NULL`
5365- /// - ::UR_RESULT_ERROR_INVALID_QUEUE
5368+ /// - ::UR_RESULT_ERROR_INVALID_QUEUE - "If `hQueue` isn't a valid queue handle or if `propName` isn't supported by `hQueue`."
53665369/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
53675370/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
53685371UR_APIEXPORT ur_result_t UR_APICALL
0 commit comments