mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
-Implement zetSysmanRasGet API Change-Id: Ib06e4a5d087a1e684c918413c3d98da2082e4f91 Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
29 lines
527 B
C++
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
|