@@ -945,21 +945,22 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
945
945
size_t ExtSize = 0 ;
946
946
urDeviceGetInfo (hDevice, UR_DEVICE_INFO_EXTENSIONS, 0 , nullptr , &ExtSize);
947
947
std::string ExtStr (ExtSize, 0 );
948
- urDeviceGetInfo (hDevice, UR_DEVICE_INFO_EXTENSIONS, ExtSize, ExtStr.data (), nullptr );
949
- if (ExtStr.find (" cl_intel_required_subgroup_size" )!=std::string::npos) {
948
+ urDeviceGetInfo (hDevice, UR_DEVICE_INFO_EXTENSIONS, ExtSize, ExtStr.data (),
949
+ nullptr );
950
+ if (ExtStr.find (" cl_intel_required_subgroup_size" ) != std::string::npos) {
950
951
// Have to convert size_t to uint32_t
951
952
size_t SubGroupSizesSize = 0 ;
952
953
CL_RETURN_ON_FAILURE (
953
- clGetDeviceInfo (cl_adapter::cast<cl_device_id>(hDevice), CLPropName, 0 ,
954
- nullptr , &SubGroupSizesSize));
954
+ clGetDeviceInfo (cl_adapter::cast<cl_device_id>(hDevice), CLPropName,
955
+ 0 , nullptr , &SubGroupSizesSize));
955
956
std::vector<size_t > SubGroupSizes (SubGroupSizesSize / sizeof (size_t ));
956
957
CL_RETURN_ON_FAILURE (
957
- clGetDeviceInfo (cl_adapter::cast<cl_device_id>(hDevice), CLPropName,
958
- SubGroupSizesSize, SubGroupSizes.data (), nullptr ));
958
+ clGetDeviceInfo (cl_adapter::cast<cl_device_id>(hDevice), CLPropName,
959
+ SubGroupSizesSize, SubGroupSizes.data (), nullptr ));
959
960
return ReturnValue.template operator ()<uint32_t >(SubGroupSizes.data (),
960
- SubGroupSizes.size ());
961
+ SubGroupSizes.size ());
961
962
} else {
962
- return ReturnValue.template operator ()<uint32_t >(std::data ({1 }),1 );
963
+ return ReturnValue.template operator ()<uint32_t >(std::data ({1 }), 1 );
963
964
}
964
965
}
965
966
case UR_DEVICE_INFO_EXTENSIONS: {
0 commit comments