Skip to content

Commit bc12283

Browse files
authored
[UR] Fix uninitialized bool (#17930)
Fixes warning that `isExtensionSupported` variable is maybe uninitialized.
1 parent 6c162ca commit bc12283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unified-runtime/source/adapters/opencl/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
13171317
}
13181318
case UR_DEVICE_INFO_SUB_GROUP_SIZES_INTEL: {
13191319
const cl_device_info info_name = CL_DEVICE_SUB_GROUP_SIZES_INTEL;
1320-
bool isExtensionSupported;
1320+
bool isExtensionSupported = false;
13211321
if (hDevice->checkDeviceExtensions({"cl_intel_required_subgroup_size"},
13221322
isExtensionSupported) !=
13231323
UR_RESULT_SUCCESS ||

0 commit comments

Comments
 (0)