fix: add hasEngines() to check for engines detection

Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
Maciej Bielski
2024-05-21 17:10:41 +00:00
committed by Compute-Runtime-Automation
parent 0977d9e09d
commit dafaaf5f7d
5 changed files with 9 additions and 2 deletions

View File

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