File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
unified-runtime/source/adapters/level_zero Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1795,12 +1795,19 @@ ur_device_handle_t_::useImmediateCommandLists() {
17951795 bool isDG2OrNewer = this ->isIntelDG2OrNewer ();
17961796 bool isDG2SupportedDriver =
17971797 this ->Platform ->isDriverVersionNewerOrSimilar (1 , 5 , 30820 );
1798+ bool isIntelMTLDevice = this ->isIntelMTL ();
1799+ bool isIntelARLDevice = this ->isIntelARL ();
17981800 // Disable immediate command lists for DG2 devices on Windows due to driver
17991801 // limitations.
18001802 bool isLinux = true ;
18011803#ifdef _WIN32
18021804 isLinux = false ;
18031805#endif
1806+ // Disable immediate command lists for Intel MTL/ARL devices on Linux by
1807+ // default due to driver limitations.
1808+ if ((isIntelMTLDevice || isIntelARLDevice) && isLinux) {
1809+ return NotUsed;
1810+ }
18041811 if ((isDG2SupportedDriver && isDG2OrNewer && isLinux) || isPVC () ||
18051812 isNewerThanIntelDG2 ()) {
18061813 return PerQueue;
Original file line number Diff line number Diff line change @@ -188,6 +188,18 @@ struct ur_device_handle_t_ : ur_object {
188188 // Checks if this GPU is an Intel Flex GPU or Intel Arc Alchemist
189189 bool isDG2 () { return (ZeDeviceProperties->deviceId & 0xff00 ) == 0x5600 ; }
190190
191+ bool isIntelMTL () {
192+ return (ZeDeviceProperties->vendorId == 0x8086 &&
193+ ZeDeviceIpVersionExt->ipVersion >= 0x03118000 &&
194+ ZeDeviceIpVersionExt->ipVersion <= 0x0311c004 );
195+ }
196+
197+ bool isIntelARL () {
198+ return (ZeDeviceProperties->vendorId == 0x8086 &&
199+ ZeDeviceIpVersionExt->ipVersion >= 0x03128000 &&
200+ ZeDeviceIpVersionExt->ipVersion <= 0x03128004 );
201+ }
202+
191203 bool isIntelDG2OrNewer () {
192204 return (ZeDeviceProperties->vendorId == 0x8086 &&
193205 ZeDeviceIpVersionExt->ipVersion >= 0x030dc000 );
You can’t perform that action at this time.
0 commit comments