Skip to content

Commit

Permalink
ngen: fix a missing-field-initializers warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mgouicem committed Jan 16, 2025
1 parent 3744e21 commit 0cdbbe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion third_party/ngen/ngen_level_zero.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ void LevelZeroCodeGenerator<hw>::detectHWInfo(ze_context_handle_t context, ze_de
#ifdef ZE_DEVICE_IP_VERSION_EXT_NAME
// Try ZE_extension_device_ip_version first if available.
ze_device_ip_version_ext_t vprop = {ZE_STRUCTURE_TYPE_DEVICE_IP_VERSION_EXT, nullptr, 0};
ze_device_properties_t dprop = {ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES, &vprop};
auto dprop = ze_device_properties_t();
dprop.stype = ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES;
dprop.pNext = &vprop;

if (call_zeDeviceGetProperties(device, &dprop) == ZE_RESULT_SUCCESS) {
outProduct = npack::decodeHWIPVersion(vprop.ipVersion);
Expand Down

0 comments on commit 0cdbbe9

Please sign in to comment.