mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Enable ULTs for Sysman APIs ported to 1.0
Change-Id: I7ef425e6a076f8b26992a9a7cd4b2711e12f3a64 Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
3b70bee38c
commit
990750d153
@@ -57,6 +57,7 @@ ze_result_t LinuxFabricPortImp::getThroughput(zes_fabric_port_throughput_t *pThr
|
||||
}
|
||||
|
||||
void LinuxFabricPortImp::getModel(char *model) {
|
||||
::snprintf(model, ZES_MAX_FABRIC_PORT_MODEL_SIZE, "%s", this->model.c_str());
|
||||
}
|
||||
|
||||
void LinuxFabricPortImp::getPortId(zes_fabric_port_id_t &portId) {
|
||||
|
||||
@@ -128,6 +128,13 @@ void FrequencyImp::init() {
|
||||
zesFrequencyProperties.max = 0.0;
|
||||
}
|
||||
zesFrequencyProperties.isThrottleEventSupported = false;
|
||||
|
||||
double freqRange = zesFrequencyProperties.max - zesFrequencyProperties.min;
|
||||
numClocks = static_cast<uint32_t>(round(freqRange / step)) + 1;
|
||||
pClocks = new double[numClocks];
|
||||
for (unsigned int i = 0; i < numClocks; i++) {
|
||||
pClocks[i] = round(zesFrequencyProperties.min + (step * i));
|
||||
}
|
||||
}
|
||||
|
||||
FrequencyImp::FrequencyImp(OsSysman *pOsSysman) {
|
||||
|
||||
Reference in New Issue
Block a user