AUB file with information about driver version

Change-Id: I7f8e01236962580515f36d72805d33af40d5fd2d
This commit is contained in:
Milczarek, Slawomir
2018-11-13 21:52:35 -08:00
committed by sys_ocldev
parent 9e61258f6c
commit 1a4628cd8e
2 changed files with 42 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
#include "runtime/memory_manager/memory_banks.h"
#include "runtime/memory_manager/os_agnostic_memory_manager.h"
#include "runtime/os_interface/debug_settings_manager.h"
#include "driver_version.h"
#include <algorithm>
#include <cstring>
@@ -179,6 +180,18 @@ void AUBCommandStreamReceiverHw<GfxFamily>::initializeEngine(size_t engineIndex)
initEngineMMIO(engineInstance);
this->initAdditionalMMIO();
// Write driver version
{
#define QTR(a) #a
#define TOSTR(b) QTR(b)
const std::string driverVersion = TOSTR(NEO_DRIVER_VERSION);
#undef QTR
#undef TOSTR
std::ostringstream str;
str << "driver version: " << driverVersion;
getAubStream()->addComment(str.str().c_str());
}
// Global HW Status Page
{
const size_t sizeHWSP = 0x1000;