mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
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>
27 lines
486 B
C++
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
|