Command Queue - Extensions#

oneAPI Level Zero Specification - Version 1.18.31

Command Queue - Extension Functions#

zeCommandQueueSetPriorityExt#

Added in version 1.18

ZE_APIEXPORT ze_result_t ZE_APICALL zeCommandQueueSetPriorityExt(ze_command_queue_handle_t hCommandQueue, ze_command_queue_priority_t priority)#

Sets the priority of a command queue.

  • The application may call this function from simultaneous threads.

  • This function changes the priority of an existing command queue, overriding the priority specified at creation through ze_command_queue_desc_t; the updated value is reported by zeCommandQueueGetPriority.

  • Whether the new priority affects commands already submitted to the command queue, or only commands submitted after this call, is implementation-defined.

Parameters:
  • hCommandQueue – [in] handle of the command queue

  • priority – [in] priority to set for the command queue

Returns: