Print device and engine info

Related-To: NEO-4640

Change-Id: I244af3d3407479d17aab603c9c5c3dc60888f7e5
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
This commit is contained in:
Andrzej Swierczynski
2020-04-30 13:24:34 +02:00
committed by sys_ocldev
parent d176462fb0
commit 29c657046d
8 changed files with 43 additions and 0 deletions

View File

@@ -510,4 +510,10 @@ bool CommandStreamReceiver::needsPageTableManager(aub_stream::EngineType engineT
return HwHelper::get(hwInfo->platform.eRenderCoreFamily).isPageTableManagerSupported(*hwInfo);
}
void CommandStreamReceiver::printDeviceIndex() {
if (DebugManager.flags.PrintDeviceAndEngineIdOnSubmission.get()) {
printf("Submission to RootDevice Index: %u, Sub-Devices Mask: %lu, EngineId: %u\n", this->getRootDeviceIndex(), this->osContext->getDeviceBitfield().to_ulong(), this->osContext->getEngineType());
}
}
} // namespace NEO