@@ -1837,10 +1837,13 @@ _pi_queue::pi_queue_group_t::getZeQueue(uint32_t *QueueGroupOrdinal) {
1837
1837
ZeCommandQueueDesc.ordinal = *QueueGroupOrdinal;
1838
1838
ZeCommandQueueDesc.index = QueueIndex;
1839
1839
ZeCommandQueueDesc.mode = ZE_COMMAND_QUEUE_MODE_ASYNCHRONOUS;
1840
+ const char *Priority = " Normal" ;
1840
1841
if (Queue->isPriorityLow ()) {
1841
1842
ZeCommandQueueDesc.priority = ZE_COMMAND_QUEUE_PRIORITY_PRIORITY_LOW;
1843
+ Priority = " Low" ;
1842
1844
} else if (Queue->isPriorityHigh ()) {
1843
1845
ZeCommandQueueDesc.priority = ZE_COMMAND_QUEUE_PRIORITY_PRIORITY_HIGH;
1846
+ Priority = " High" ;
1844
1847
}
1845
1848
1846
1849
// Evaluate performance of explicit usage for "0" index.
@@ -1849,9 +1852,9 @@ _pi_queue::pi_queue_group_t::getZeQueue(uint32_t *QueueGroupOrdinal) {
1849
1852
}
1850
1853
1851
1854
zePrint (" [getZeQueue]: create queue ordinal = %d, index = %d "
1852
- " (round robin in [%d, %d])\n " ,
1855
+ " (round robin in [%d, %d]) priority = %s \n " ,
1853
1856
ZeCommandQueueDesc.ordinal , ZeCommandQueueDesc.index , LowerIndex,
1854
- UpperIndex);
1857
+ UpperIndex, Priority );
1855
1858
1856
1859
auto ZeResult = ZE_CALL_NOCHECK (
1857
1860
zeCommandQueueCreate, (Queue->Context ->ZeContext , Queue->Device ->ZeDevice ,
@@ -1877,16 +1880,24 @@ pi_command_list_ptr_t &_pi_queue::pi_queue_group_t::getImmCmdList() {
1877
1880
ZeCommandQueueDesc.ordinal = QueueOrdinal;
1878
1881
ZeCommandQueueDesc.index = QueueIndex;
1879
1882
ZeCommandQueueDesc.mode = ZE_COMMAND_QUEUE_MODE_ASYNCHRONOUS;
1883
+ const char *Priority = " Normal" ;
1884
+ if (Queue->isPriorityLow ()) {
1885
+ ZeCommandQueueDesc.priority = ZE_COMMAND_QUEUE_PRIORITY_PRIORITY_LOW;
1886
+ Priority = " Low" ;
1887
+ } else if (Queue->isPriorityHigh ()) {
1888
+ ZeCommandQueueDesc.priority = ZE_COMMAND_QUEUE_PRIORITY_PRIORITY_HIGH;
1889
+ Priority = " High" ;
1890
+ }
1880
1891
1881
1892
// Evaluate performance of explicit usage for "0" index.
1882
1893
if (QueueIndex != 0 ) {
1883
1894
ZeCommandQueueDesc.flags = ZE_COMMAND_QUEUE_FLAG_EXPLICIT_ONLY;
1884
1895
}
1885
1896
1886
1897
zePrint (" [getZeQueue]: create queue ordinal = %d, index = %d "
1887
- " (round robin in [%d, %d])\n " ,
1898
+ " (round robin in [%d, %d]) priority = %s \n " ,
1888
1899
ZeCommandQueueDesc.ordinal , ZeCommandQueueDesc.index , LowerIndex,
1889
- UpperIndex);
1900
+ UpperIndex, Priority );
1890
1901
1891
1902
ze_command_list_handle_t ZeCommandList;
1892
1903
ZE_CALL_NOCHECK (zeCommandListCreateImmediate,
0 commit comments