mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
AUB file with information about driver version
Change-Id: I7f8e01236962580515f36d72805d33af40d5fd2d
This commit is contained in:
committed by
sys_ocldev
parent
9e61258f6c
commit
1a4628cd8e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user