Add support for global_operations in new sysman design

Related-To: LOCI-4135
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
Jitendra Sharma
2023-03-24 07:32:22 +00:00
committed by Compute-Runtime-Automation
parent 4c7bc2ca98
commit d29ed25f8b
35 changed files with 3241 additions and 23 deletions

View File

@@ -35,3 +35,11 @@ struct _zes_sched_handle_t {
struct _zes_firmware_handle_t {
virtual ~_zes_firmware_handle_t() = default;
};
struct _zes_diag_handle_t {
virtual ~_zes_diag_handle_t() = default;
};
struct _zes_ras_handle_t {
virtual ~_zes_ras_handle_t() = default;
};

View File

@@ -35,13 +35,21 @@ ze_result_t zesDeviceGet(
ze_result_t zesDeviceGetProperties(
zes_device_handle_t hDevice,
zes_device_properties_t *pProperties) {
return L0::SysmanDevice::deviceGetProperties(hDevice, pProperties);
if (L0::sysmanInitFromCore) {
return L0::SysmanDevice::deviceGetProperties(hDevice, pProperties);
} else {
return L0::Sysman::SysmanDevice::deviceGetProperties(hDevice, pProperties);
}
}
ze_result_t zesDeviceGetState(
zes_device_handle_t hDevice,
zes_device_state_t *pState) {
return L0::SysmanDevice::deviceGetState(hDevice, pState);
if (L0::sysmanInitFromCore) {
return L0::SysmanDevice::deviceGetState(hDevice, pState);
} else {
return L0::Sysman::SysmanDevice::deviceGetState(hDevice, pState);
}
}
ze_result_t zesDeviceEnumSchedulers(
@@ -143,13 +151,21 @@ ze_result_t zesDeviceProcessesGetState(
zes_device_handle_t hDevice,
uint32_t *pCount,
zes_process_state_t *pProcesses) {
return L0::SysmanDevice::processesGetState(hDevice, pCount, pProcesses);
if (L0::sysmanInitFromCore) {
return L0::SysmanDevice::processesGetState(hDevice, pCount, pProcesses);
} else {
return L0::Sysman::SysmanDevice::processesGetState(hDevice, pCount, pProcesses);
}
}
ze_result_t zesDeviceReset(
zes_device_handle_t hDevice,
ze_bool_t force) {
return L0::SysmanDevice::deviceReset(hDevice, force);
if (L0::sysmanInitFromCore) {
return L0::SysmanDevice::deviceReset(hDevice, force);
} else {
return L0::Sysman::SysmanDevice::deviceReset(hDevice, force);
}
}
ze_result_t zesDevicePciGetProperties(