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:
Matias A. Cabral
2020-08-03 15:15:20 -07:00
committed by sys_ocldev
parent 3b70bee38c
commit 990750d153
21 changed files with 27 additions and 841 deletions

View File

@@ -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) {

View File

@@ -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) {