mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
sys_ocldev
parent
2f27e4dde9
commit
31291b1cf0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user