Move device name to device scope.

Change-Id: If7df4c8f97fa6b0c6f9449ae6802386c639241c2
This commit is contained in:
Mrozek, Michal
2018-06-21 10:47:21 +02:00
committed by sys_ocldev
parent ca87805ba0
commit 3e65a39c62
4 changed files with 9 additions and 8 deletions

View File

@@ -83,6 +83,7 @@ Device::Device(const HardwareInfo &hwInfo,
osTime(nullptr), slmWindowStartAddress(nullptr) {
memset(&deviceInfo, 0, sizeof(deviceInfo));
deviceExtensions.reserve(1000);
name.reserve(100);
preemptionMode = PreemptionHelper::getDefaultPreemptionMode(hwInfo);
engineType = DebugManager.flags.NodeOrdinal.get() == -1
? hwInfo.capabilityTable.defaultEngineType