mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 12:33:12 +08:00
Related-To: NEO-14331 Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
36 lines
863 B
C++
36 lines
863 B
C++
/*
|
|
* Copyright (C) 2023-2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/helpers/hw_info.h"
|
|
|
|
#include "level_zero/sysman/source/device/sysman_hw_device_id.h"
|
|
#include <level_zero/zes_api.h>
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
namespace L0 {
|
|
namespace Sysman {
|
|
|
|
struct SysmanDeviceImp;
|
|
|
|
struct OsSysman {
|
|
virtual ~OsSysman(){};
|
|
|
|
virtual ze_result_t init() = 0;
|
|
virtual ze_result_t initSurvivabilityMode(std::unique_ptr<NEO::HwDeviceId> hwDeviceId) = 0;
|
|
static OsSysman *create(SysmanDeviceImp *pSysmanImp);
|
|
virtual uint32_t getSubDeviceCount() = 0;
|
|
virtual bool isDeviceInSurvivabilityMode() = 0;
|
|
virtual const NEO::HardwareInfo &getHardwareInfo() const = 0;
|
|
virtual void getDeviceUuids(std::vector<std::string> &deviceUuids) = 0;
|
|
};
|
|
|
|
} // namespace Sysman
|
|
} // namespace L0
|