refactor: add debug message about the zero engine info size

Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
Krzysztof Gibala
2024-04-25 15:08:27 +00:00
committed by Compute-Runtime-Automation
parent 06faaab5bb
commit a70aaa72ed
2 changed files with 37 additions and 0 deletions

View File

@@ -976,6 +976,10 @@ bool Drm::queryMemoryInfo() {
bool Drm::queryEngineInfo(bool isSysmanEnabled) {
this->engineInfo = ioctlHelper->createEngineInfo(isSysmanEnabled);
if (this->engineInfo && this->engineInfo.get()->engines.size() == 0) {
printDebugString(debugManager.flags.PrintDebugMessages.get(), stderr, "%s", "FATAL: Engine info size is equal to 0.\n");
}
return this->engineInfo != nullptr;
}