@@ -154,8 +154,8 @@ void testSysmanPower(ze_device_handle_t &device) {
154154 zes_power_properties_t properties;
155155 VALIDATECALL (zesPowerGetProperties (handle, &properties));
156156 if (verbose) {
157- std::cout << " properties.canControl = " << properties.canControl << std::endl;
158- std::cout << " properties.isEnergyThresholdSupported= " << properties.isEnergyThresholdSupported << std::endl;
157+ std::cout << " properties.canControl = " << static_cast < uint32_t >( properties.canControl ) << std::endl;
158+ std::cout << " properties.isEnergyThresholdSupported= " << static_cast < uint32_t >( properties.isEnergyThresholdSupported ) << std::endl;
159159 std::cout << " properties.defaultLimit= " << properties.defaultLimit << std::endl;
160160 std::cout << " properties.maxLimit =" << properties.maxLimit << std::endl;
161161 std::cout << " properties.minLimit =" << properties.minLimit << std::endl;
@@ -170,12 +170,12 @@ void testSysmanPower(ze_device_handle_t &device) {
170170 zes_power_burst_limit_t burstGetDefault = {};
171171 VALIDATECALL (zesPowerGetLimits (handle, &sustainedGetDefault, &burstGetDefault, nullptr ));
172172 if (verbose) {
173- std::cout << " sustainedGetDefault.enabled = " << sustainedGetDefault.enabled << std::endl;
173+ std::cout << " sustainedGetDefault.enabled = " << static_cast < uint32_t >( sustainedGetDefault.enabled ) << std::endl;
174174 if (sustainedGetDefault.enabled ) {
175175 std::cout << " sustainedGetDefault.power = " << sustainedGetDefault.power << std::endl;
176176 std::cout << " sustainedGetDefault.interval = " << sustainedGetDefault.interval << std::endl;
177177 }
178- std::cout << " burstGetDefault.enabled = " << burstGetDefault.enabled << std::endl;
178+ std::cout << " burstGetDefault.enabled = " << static_cast < uint32_t >( burstGetDefault.enabled ) << std::endl;
179179 if (burstGetDefault.enabled ) {
180180 std::cout << " burstGetDefault.power = " << burstGetDefault.power << std::endl;
181181 }
@@ -258,7 +258,7 @@ void testSysmanPerformance(ze_device_handle_t &device, std::vector<std::string>
258258 zes_perf_properties_t properties;
259259 VALIDATECALL (zesPerformanceFactorGetProperties (handle, &properties));
260260 if (verbose) {
261- std::cout << " properties.onSubdevice = " << properties.onSubdevice << std::endl;
261+ std::cout << " properties.onSubdevice = " << static_cast < uint32_t >( properties.onSubdevice ) << std::endl;
262262 std::cout << " properties.subdeviceId = " << properties.subdeviceId << std::endl;
263263 std::cout << " properties.engines = " << getEngineFlagType (properties.engines ) << std::endl;
264264 }
@@ -384,8 +384,8 @@ void testSysmanFrequency(ze_device_handle_t &device) {
384384 VALIDATECALL (zesFrequencyGetProperties (handle, &freqProperties));
385385 if (verbose) {
386386 std::cout << " freqProperties.type = " << freqProperties.type << std::endl;
387- std::cout << " freqProperties.canControl = " << freqProperties.canControl << std::endl;
388- std::cout << " freqProperties.isThrottleEventSupported = " << freqProperties.isThrottleEventSupported << std::endl;
387+ std::cout << " freqProperties.canControl = " << static_cast < uint32_t >( freqProperties.canControl ) << std::endl;
388+ std::cout << " freqProperties.isThrottleEventSupported = " << static_cast < uint32_t >( freqProperties.isThrottleEventSupported ) << std::endl;
389389 std::cout << " freqProperties.min = " << freqProperties.min << std::endl;
390390 std::cout << " freqProperties.max = " << freqProperties.max << std::endl;
391391 if (freqProperties.onSubdevice ) {
@@ -663,9 +663,9 @@ void testSysmanScheduler(ze_device_handle_t &device) {
663663 zes_sched_properties_t pProperties = {};
664664 VALIDATECALL (zesSchedulerGetProperties (handle, &pProperties));
665665 if (verbose) {
666- std::cout << " On subdevice = " << static_cast <bool >(pProperties.onSubdevice ) << std::endl;
666+ std::cout << " On subdevice = " << static_cast <uint32_t >(pProperties.onSubdevice ) << std::endl;
667667 std::cout << " SubdeviceId = " << static_cast <uint32_t >(pProperties.subdeviceId ) << std::endl;
668- std::cout << " Can control = " << static_cast <bool >(pProperties.canControl ) << std::endl;
668+ std::cout << " Can control = " << static_cast <uint32_t >(pProperties.canControl ) << std::endl;
669669 std::cout << " Engines = " << static_cast <uint32_t >(pProperties.engines ) << std::endl;
670670 std::cout << " Supported Mode = " << static_cast <uint32_t >(pProperties.supportedModes ) << std::endl;
671671 }
@@ -770,7 +770,7 @@ void testSysmanMemory(ze_device_handle_t &device) {
770770 VALIDATECALL (zesMemoryGetProperties (handle, &memoryProperties));
771771 if (verbose) {
772772 std::cout << " Memory Type = " << getMemoryType (memoryProperties.type ) << std::endl;
773- std::cout << " On Subdevice = " << memoryProperties.onSubdevice << std::endl;
773+ std::cout << " On Subdevice = " << static_cast < uint32_t >( memoryProperties.onSubdevice ) << std::endl;
774774 std::cout << " Subdevice Id = " << memoryProperties.subdeviceId << std::endl;
775775 std::cout << " Memory Size = " << memoryProperties.physicalSize << std::endl;
776776 std::cout << " Number of channels = " << memoryProperties.numChannels << std::endl;
@@ -820,7 +820,7 @@ void testSysmanFirmware(ze_device_handle_t &device, std::string imagePath) {
820820 VALIDATECALL (zesFirmwareGetProperties (handle, &fwProperties));
821821 if (verbose) {
822822 std::cout << " firmware name = " << fwProperties.name << std::endl;
823- std::cout << " On Subdevice = " << fwProperties.onSubdevice << std::endl;
823+ std::cout << " On Subdevice = " << static_cast < uint32_t >( fwProperties.onSubdevice ) << std::endl;
824824 std::cout << " Subdevice Id = " << fwProperties.subdeviceId << std::endl;
825825 std::cout << " firmware version = " << fwProperties.version << std::endl;
826826 }
@@ -832,7 +832,7 @@ void testSysmanFirmware(ze_device_handle_t &device, std::string imagePath) {
832832 VALIDATECALL (zesFirmwareGetProperties (handle, &fwProperties));
833833 if (verbose) {
834834 std::cout << " firmware name = " << fwProperties.name << std::endl;
835- std::cout << " On Subdevice = " << fwProperties.onSubdevice << std::endl;
835+ std::cout << " On Subdevice = " << static_cast < uint32_t >( fwProperties.onSubdevice ) << std::endl;
836836 std::cout << " Subdevice Id = " << fwProperties.subdeviceId << std::endl;
837837 std::cout << " firmware version = " << fwProperties.version << std::endl;
838838 }
0 commit comments