mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Debug flag to print completion fence usage.
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
31f97717db
commit
eb79500c60
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user