@@ -1156,6 +1156,7 @@ ur_result_t urDeviceGetInfo(
11561156 case UR_DEVICE_INFO_GLOBAL_VARIABLE_SUPPORT:
11571157 return ReturnValue (true );
11581158 case UR_DEVICE_INFO_2D_BLOCK_ARRAY_CAPABILITIES_EXP: {
1159+ #ifdef ZE_INTEL_DEVICE_BLOCK_ARRAY_EXP_NAME
11591160 const auto ZeDeviceBlockArrayFlags =
11601161 Device->ZeDeviceBlockArrayProperties ->flags ;
11611162
@@ -1172,6 +1173,9 @@ ur_result_t urDeviceGetInfo(
11721173 BlockArrayCapabilities |= UR_EXP_DEVICE_2D_BLOCK_ARRAY_CAPABILITY_FLAG_STORE;
11731174 }
11741175 return ReturnValue (BlockArrayCapabilities);
1176+ #else
1177+ return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
1178+ #endif
11751179 }
11761180 default :
11771181 logger::error (" Unsupported ParamName in urGetDeviceInfo" );
@@ -1581,6 +1585,7 @@ ur_result_t ur_device_handle_t_::initialize(int SubSubDeviceOrdinal,
15811585 ZE_CALL_NOCHECK (zeDeviceGetProperties, (ZeDevice, &P));
15821586 };
15831587
1588+ #ifdef ZE_INTEL_DEVICE_BLOCK_ARRAY_EXP_NAME
15841589 ZeDeviceBlockArrayProperties.Compute =
15851590 [ZeDevice](
15861591 ZeStruct<ze_intel_device_block_array_exp_properties_t > &Properties) {
@@ -1589,6 +1594,7 @@ ur_result_t ur_device_handle_t_::initialize(int SubSubDeviceOrdinal,
15891594 P.pNext = &Properties;
15901595 ZE_CALL_NOCHECK (zeDeviceGetProperties, (ZeDevice, &P));
15911596 };
1597+ #endif // ZE_INTEL_DEVICE_BLOCK_ARRAY_EXP_NAME
15921598
15931599 ImmCommandListUsed = this ->useImmediateCommandLists ();
15941600
0 commit comments