@@ -154,8 +154,8 @@ void testSysmanPower(ze_device_handle_t &device) {
154
154
zes_power_properties_t properties;
155
155
VALIDATECALL (zesPowerGetProperties (handle, &properties));
156
156
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;
159
159
std::cout << " properties.defaultLimit= " << properties.defaultLimit << std::endl;
160
160
std::cout << " properties.maxLimit =" << properties.maxLimit << std::endl;
161
161
std::cout << " properties.minLimit =" << properties.minLimit << std::endl;
@@ -170,12 +170,12 @@ void testSysmanPower(ze_device_handle_t &device) {
170
170
zes_power_burst_limit_t burstGetDefault = {};
171
171
VALIDATECALL (zesPowerGetLimits (handle, &sustainedGetDefault, &burstGetDefault, nullptr ));
172
172
if (verbose) {
173
- std::cout << " sustainedGetDefault.enabled = " << sustainedGetDefault.enabled << std::endl;
173
+ std::cout << " sustainedGetDefault.enabled = " << static_cast < uint32_t >( sustainedGetDefault.enabled ) << std::endl;
174
174
if (sustainedGetDefault.enabled ) {
175
175
std::cout << " sustainedGetDefault.power = " << sustainedGetDefault.power << std::endl;
176
176
std::cout << " sustainedGetDefault.interval = " << sustainedGetDefault.interval << std::endl;
177
177
}
178
- std::cout << " burstGetDefault.enabled = " << burstGetDefault.enabled << std::endl;
178
+ std::cout << " burstGetDefault.enabled = " << static_cast < uint32_t >( burstGetDefault.enabled ) << std::endl;
179
179
if (burstGetDefault.enabled ) {
180
180
std::cout << " burstGetDefault.power = " << burstGetDefault.power << std::endl;
181
181
}
@@ -258,7 +258,7 @@ void testSysmanPerformance(ze_device_handle_t &device, std::vector<std::string>
258
258
zes_perf_properties_t properties;
259
259
VALIDATECALL (zesPerformanceFactorGetProperties (handle, &properties));
260
260
if (verbose) {
261
- std::cout << " properties.onSubdevice = " << properties.onSubdevice << std::endl;
261
+ std::cout << " properties.onSubdevice = " << static_cast < uint32_t >( properties.onSubdevice ) << std::endl;
262
262
std::cout << " properties.subdeviceId = " << properties.subdeviceId << std::endl;
263
263
std::cout << " properties.engines = " << getEngineFlagType (properties.engines ) << std::endl;
264
264
}
@@ -384,8 +384,8 @@ void testSysmanFrequency(ze_device_handle_t &device) {
384
384
VALIDATECALL (zesFrequencyGetProperties (handle, &freqProperties));
385
385
if (verbose) {
386
386
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;
389
389
std::cout << " freqProperties.min = " << freqProperties.min << std::endl;
390
390
std::cout << " freqProperties.max = " << freqProperties.max << std::endl;
391
391
if (freqProperties.onSubdevice ) {
@@ -663,9 +663,9 @@ void testSysmanScheduler(ze_device_handle_t &device) {
663
663
zes_sched_properties_t pProperties = {};
664
664
VALIDATECALL (zesSchedulerGetProperties (handle, &pProperties));
665
665
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;
667
667
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;
669
669
std::cout << " Engines = " << static_cast <uint32_t >(pProperties.engines ) << std::endl;
670
670
std::cout << " Supported Mode = " << static_cast <uint32_t >(pProperties.supportedModes ) << std::endl;
671
671
}
@@ -770,7 +770,7 @@ void testSysmanMemory(ze_device_handle_t &device) {
770
770
VALIDATECALL (zesMemoryGetProperties (handle, &memoryProperties));
771
771
if (verbose) {
772
772
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;
774
774
std::cout << " Subdevice Id = " << memoryProperties.subdeviceId << std::endl;
775
775
std::cout << " Memory Size = " << memoryProperties.physicalSize << std::endl;
776
776
std::cout << " Number of channels = " << memoryProperties.numChannels << std::endl;
@@ -820,7 +820,7 @@ void testSysmanFirmware(ze_device_handle_t &device, std::string imagePath) {
820
820
VALIDATECALL (zesFirmwareGetProperties (handle, &fwProperties));
821
821
if (verbose) {
822
822
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;
824
824
std::cout << " Subdevice Id = " << fwProperties.subdeviceId << std::endl;
825
825
std::cout << " firmware version = " << fwProperties.version << std::endl;
826
826
}
@@ -832,7 +832,7 @@ void testSysmanFirmware(ze_device_handle_t &device, std::string imagePath) {
832
832
VALIDATECALL (zesFirmwareGetProperties (handle, &fwProperties));
833
833
if (verbose) {
834
834
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;
836
836
std::cout << " Subdevice Id = " << fwProperties.subdeviceId << std::endl;
837
837
std::cout << " firmware version = " << fwProperties.version << std::endl;
838
838
}
0 commit comments