feature: add L0 API querying priority levels - zeDeviceGetPriorityLevels()

Related-To: NEO-14572

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2025-05-21 12:22:11 +00:00
committed by Compute-Runtime-Automation
parent a423493a4a
commit 0d57dcfdf0
31 changed files with 260 additions and 108 deletions

View File

@@ -195,11 +195,11 @@ AILConfiguration *MockDevice::getAilConfigurationHelper() const {
return Device::getAilConfigurationHelper();
}
EngineControl *MockDevice::getSecondaryEngineCsr(EngineTypeUsage engineTypeUsage, bool allocateInterrupt) {
EngineControl *MockDevice::getSecondaryEngineCsr(EngineTypeUsage engineTypeUsage, int priorityLevel, bool allocateInterrupt) {
if (disableSecondaryEngines) {
return nullptr;
}
return RootDevice::getSecondaryEngineCsr(engineTypeUsage, allocateInterrupt);
return RootDevice::getSecondaryEngineCsr(engineTypeUsage, priorityLevel, allocateInterrupt);
}
std::unique_ptr<CommandStreamReceiver> MockDevice::createCommandStreamReceiver() const {

View File

@@ -180,7 +180,7 @@ class MockDevice : public RootDevice {
return getGlobalMemorySizeReturn;
}
EngineControl *getSecondaryEngineCsr(EngineTypeUsage engineTypeUsage, bool allocateInterrupt) override;
EngineControl *getSecondaryEngineCsr(EngineTypeUsage engineTypeUsage, int priorityLevel, bool allocateInterrupt) override;
static ExecutionEnvironment *prepareExecutionEnvironment(const HardwareInfo *pHwInfo);
static decltype(&createCommandStream) createCommandStreamReceiverFunc;