mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Add subdevice support for RAS module
Change-Id: Iced5aeed86d6b19a4710992155257e420ae1296f Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
This commit is contained in:
@@ -16,16 +16,18 @@ RasHandleContext::~RasHandleContext() {
|
||||
delete pRas;
|
||||
}
|
||||
}
|
||||
void RasHandleContext::createHandle(zes_ras_error_type_t type) {
|
||||
Ras *pRas = new RasImp(pOsSysman, type);
|
||||
void RasHandleContext::createHandle(zes_ras_error_type_t type, ze_device_handle_t deviceHandle) {
|
||||
Ras *pRas = new RasImp(pOsSysman, type, deviceHandle);
|
||||
handleList.push_back(pRas);
|
||||
}
|
||||
|
||||
void RasHandleContext::init() {
|
||||
std::vector<zes_ras_error_type_t> errorType = {};
|
||||
OsRas::getSupportedRasErrorTypes(errorType, pOsSysman);
|
||||
for (const auto &type : errorType) {
|
||||
createHandle(type);
|
||||
void RasHandleContext::init(std::vector<ze_device_handle_t> &deviceHandles) {
|
||||
for (const auto &deviceHandle : deviceHandles) {
|
||||
std::vector<zes_ras_error_type_t> errorType = {};
|
||||
OsRas::getSupportedRasErrorTypes(errorType, pOsSysman, deviceHandle);
|
||||
for (const auto &type : errorType) {
|
||||
createHandle(type, deviceHandle);
|
||||
}
|
||||
}
|
||||
}
|
||||
ze_result_t RasHandleContext::rasGet(uint32_t *pCount,
|
||||
|
||||
Reference in New Issue
Block a user