@@ -327,19 +327,16 @@ void teardown(ze_context_handle_t context, ze_command_queue_handle_t cmdQueue) {
327327}
328328
329329void printDeviceProperties (const ze_device_properties_t &props) {
330- auto fillChar = std::cout.fill ();
331- auto widthSize = static_cast <int >(std::cout.width ());
332-
333330 if (verbose) {
334331 std::cout << " Device : "
335332 << " \n "
336333 << " * name : " << props.name << " \n "
337334 << " * type : " << ((props.type == ZE_DEVICE_TYPE_GPU) ? " GPU" : " FPGA" ) << " \n "
338- << std::setw ( 4 ) << std::setfill ( ' 0 ' )
339- << " * vendorId : 0x" << std::hex << props.vendorId << " \n "
340- << " * deviceId : 0x" << std::hex << props.deviceId << " \n "
341- << std::setw (widthSize) << std::setfill (fillChar)
342- << " * subdeviceId : " << std::dec << props.subdeviceId << " \n "
335+ << std::hex
336+ << " * vendorId : 0x" << std::setw ( 4 ) << std::setfill ( ' 0 ' ) << props.vendorId << " \n "
337+ << " * deviceId : 0x" << std::setw ( 4 ) << std::setfill ( ' 0 ' ) << props.deviceId << " \n "
338+ << std::dec
339+ << " * subdeviceId : " << props.subdeviceId << " \n "
343340 << " * coreClockRate : " << props.coreClockRate << " \n "
344341 << " * maxMemAllocSize : " << props.maxMemAllocSize << " \n "
345342 << " * maxHardwareContexts : " << props.maxHardwareContexts << " \n "
@@ -356,10 +353,10 @@ void printDeviceProperties(const ze_device_properties_t &props) {
356353 } else {
357354 std::cout << " Device : \n "
358355 << " * name : " << props.name << " \n "
359- << std::setw ( 4 ) << std::setfill ( ' 0 ' )
360- << " * vendorId : 0x" << std::hex << props.vendorId << " \n "
361- << " * deviceId : 0x" << std::hex << props. deviceId << std::dec << " \n "
362- << std::setw (widthSize) << std::setfill (fillChar) ;
356+ << std::hex
357+ << " * vendorId : 0x" << std::setw ( 4 ) << std::setfill ( ' 0 ' ) << props.vendorId << " \n "
358+ << " * deviceId : 0x" << std::setw ( 4 ) << std::setfill ( ' 0 ' ) << props. deviceId << " \n "
359+ << std::dec ;
363360 }
364361}
365362
0 commit comments