Skip to content

Commit cadd4b1

Browse files
authored
Fix the device property Initialization (#600)
Initialize the device properties Co-authored-by: [email protected] <Nishant Patel>
1 parent 87cef81 commit cadd4b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ExecutionEngine/LEVELZERORUNTIME/LevelZeroRuntimeWrappers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ getDriverAndDevice(ze_device_type_t deviceType = ZE_DEVICE_TYPE_GPU) {
9797
devices.resize(deviceCount);
9898
CHECK_ZE_RESULT(zeDeviceGet(allDrivers[i], &deviceCount, devices.data()));
9999
for (uint32_t d = 0; d < deviceCount; ++d) {
100-
ze_device_properties_t device_properties;
100+
ze_device_properties_t device_properties = {};
101101
CHECK_ZE_RESULT(zeDeviceGetProperties(devices[d], &device_properties));
102102
if (deviceType == device_properties.type) {
103103
auto driver = allDrivers[i];

0 commit comments

Comments
 (0)