Files
compute-runtime/level_zero/tools/source/sysman/ras/ras.cpp
Vilvaraj, T J Vivek 324b1f5c60 RAS APIs boilerplate for Level Zero Sysman.
-Implement zetSysmanRasGet API

Change-Id: Ib06e4a5d087a1e684c918413c3d98da2082e4f91
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-04-21 20:04:53 +02:00

29 lines
527 B
C++

/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/tools/source/sysman/ras/ras_imp.h"
namespace L0 {
RasHandleContext::~RasHandleContext() {
for (Ras *pRas : handleList) {
delete pRas;
}
}
void RasHandleContext::init() {
Ras *pRas = new RasImp(pOsSysman);
handleList.push_back(pRas);
}
ze_result_t RasHandleContext::rasGet(uint32_t *pCount, zet_sysman_ras_handle_t *phRas) {
*pCount = 0;
return ZE_RESULT_SUCCESS;
}
} // namespace L0