Debug flag to print completion fence usage.

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2022-10-11 12:36:19 +00:00
committed by Compute-Runtime-Automation
parent 31f97717db
commit eb79500c60
5 changed files with 33 additions and 1 deletions

View File

@@ -55,6 +55,13 @@ DrmDirectSubmission<GfxFamily, Dispatcher>::DrmDirectSubmission(const DirectSubm
if (drm.completionFenceSupport()) {
this->completionFenceSupported = true;
}
if (DebugManager.flags.PrintCompletionFenceUsage.get()) {
std::cout << "Completion fence for DirectSubmission:"
<< " GPU address: " << std::hex << (this->completionFenceAllocation->getGpuAddress() + Drm::completionFenceOffset)
<< ", CPU address: " << (castToUint64(this->completionFenceAllocation->getUnderlyingBuffer()) + Drm::completionFenceOffset)
<< std::dec << std::endl;
}
}
}
}