mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add --enable_memory_dumps option to aub_tests
Related-To: NEO-3079 Change-Id: I185309aba2a8a6e02988bbe407c43ea7fa53be4d Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
7a7cb3d33a
commit
52e48c4215
@ -174,6 +174,7 @@ int main(int argc, char **argv) {
|
||||
bool useDefaultListener = false;
|
||||
bool enable_alarm = true;
|
||||
bool setupFeatureTable = testMode == TestMode::AubTests ? true : false;
|
||||
bool enableMemoryDumps = false;
|
||||
|
||||
applyWorkarounds();
|
||||
|
||||
@ -285,6 +286,8 @@ int main(int argc, char **argv) {
|
||||
DebugManager.setReaderImpl(SettingsReader::create());
|
||||
DebugManager.injectSettingsFromReader();
|
||||
}
|
||||
} else if (!strcmp("--enable_memory_dumps", argv[i]) && testMode == TestMode::AubTests) {
|
||||
enableMemoryDumps = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -292,6 +295,11 @@ int main(int argc, char **argv) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (enableMemoryDumps) {
|
||||
DebugManager.flags.AUBDumpBufferFormat.set("BIN");
|
||||
DebugManager.flags.AUBDumpImageFormat.set("TRE");
|
||||
}
|
||||
|
||||
uint32_t threadsPerEu = hwInfoConfigFactory[productFamily]->threadsPerEu;
|
||||
PLATFORM platform;
|
||||
auto hardwareInfo = hardwareInfoTable[productFamily];
|
||||
|
Reference in New Issue
Block a user