Files
compute-runtime/level_zero/tools/source/sysman/windows/os_sysman_imp.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

48 lines
1.3 KiB
C++

/*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/os_interface/os_interface.h"
#include "shared/source/os_interface/windows/wddm/wddm.h"
#include "level_zero/core/source/device/device.h"
#include "level_zero/tools/source/sysman/sysman_imp.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
namespace L0 {
class FirmwareUtil;
class WddmSysmanImp : public OsSysman, NEO::NonCopyableOrMovableClass {
public:
WddmSysmanImp(SysmanDeviceImp *pParentSysmanDeviceImp);
~WddmSysmanImp() override;
ze_result_t init() override;
KmdSysManager &getKmdSysManager();
FirmwareUtil *getFwUtilInterface();
NEO::Wddm &getWddm();
Device *getDeviceHandle();
void releaseFwUtilInterface();
std::vector<ze_device_handle_t> &getDeviceHandles() override;
ze_device_handle_t getCoreDeviceHandle() override;
protected:
FirmwareUtil *pFwUtilInterface = nullptr;
KmdSysManager *pKmdSysManager = nullptr;
Device *pDevice = nullptr;
private:
SysmanDeviceImp *pParentSysmanDeviceImp = nullptr;
NEO::Wddm *pWddm = nullptr;
void createFwUtilInterface();
};
} // namespace L0