mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Added support for Frequency APIs
- Added support for the Frequency APIs in the new sysman design. - Added ULTs for the Frequency APIs in the new sysman design. Related-To: LOCI-4096 Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9a056318a4
commit
593bd13d4d
@@ -25,6 +25,7 @@ SysmanDeviceImp::SysmanDeviceImp(NEO::ExecutionEnvironment *executionEnvironment
|
||||
pMemoryHandleContext = new MemoryHandleContext(pOsSysman);
|
||||
pPowerHandleContext = new PowerHandleContext(pOsSysman);
|
||||
pEngineHandleContext = new EngineHandleContext(pOsSysman);
|
||||
pFrequencyHandleContext = new FrequencyHandleContext(pOsSysman);
|
||||
}
|
||||
|
||||
SysmanDeviceImp::~SysmanDeviceImp() {
|
||||
@@ -33,6 +34,7 @@ SysmanDeviceImp::~SysmanDeviceImp() {
|
||||
freeResource(pEngineHandleContext);
|
||||
freeResource(pFabricPortHandleContext);
|
||||
freeResource(pMemoryHandleContext);
|
||||
freeResource(pFrequencyHandleContext);
|
||||
freeResource(pOsSysman);
|
||||
}
|
||||
|
||||
@@ -64,5 +66,9 @@ ze_result_t SysmanDeviceImp::engineGet(uint32_t *pCount, zes_engine_handle_t *ph
|
||||
return pEngineHandleContext->engineGet(pCount, phEngine);
|
||||
}
|
||||
|
||||
ze_result_t SysmanDeviceImp::frequencyGet(uint32_t *pCount, zes_freq_handle_t *phFrequency) {
|
||||
return pFrequencyHandleContext->frequencyGet(pCount, phFrequency);
|
||||
}
|
||||
|
||||
} // namespace Sysman
|
||||
} // namespace L0
|
||||
|
||||
Reference in New Issue
Block a user