Files
compute-runtime/level_zero/tools/source/sysman/os_sysman.h
Kulkarni, Ashwin Kumar 137959c647 Defer Sysman Power and Performance Module Initialization
With this change, init for sysman Power/Performance API would
not be done during zeInit.
init and thereby Power/Performance API handle creation would be done
only when user explicitly requests to enumerate handles
using zesDeviceEnumPowerDomains/zesDeviceEnumPerformanceFactorDomains.

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-07-25 08:17:46 +02:00

27 lines
486 B
C++

/*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <level_zero/zes_api.h>
#include <vector>
namespace L0 {
struct SysmanDeviceImp;
struct OsSysman {
virtual ~OsSysman(){};
virtual ze_result_t init() = 0;
static OsSysman *create(SysmanDeviceImp *pSysmanImp);
virtual std::vector<ze_device_handle_t> &getDeviceHandles() = 0;
virtual ze_device_handle_t getCoreDeviceHandle() = 0;
};
} // namespace L0