Add 4-digit zero alignment of device id in device name (2)

Unify names for OpenCL and L0

Related-To: NEO-4744

Change-Id: I5094f228f447ecbd942c25d6244abee593f3ffbf
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2020-10-20 15:33:41 -07:00
committed by sys_ocldev
parent 2f27e4dde9
commit 31291b1cf0
4 changed files with 12 additions and 8 deletions

View File

@@ -19,7 +19,6 @@
#include "driver_version.h"
#include <iomanip>
#include <string>
namespace NEO {
@@ -434,12 +433,7 @@ void ClDevice::initializeOpenclCAllVersions() {
}
const std::string ClDevice::getClDeviceName(const HardwareInfo &hwInfo) const {
std::stringstream deviceName;
deviceName << device.getDeviceName(hwInfo);
deviceName << " [0x" << std::hex << std::setw(4) << std::setfill('0') << hwInfo.platform.usDeviceID << "]";
return deviceName.str();
return this->getDevice().getDeviceInfo().name;
}
} // namespace NEO