Commit 2a5f0511 authored by Carla Guillen Carias's avatar Carla Guillen Carias
Browse files

Fixing errors

parent 3ed4eed0
......@@ -25,7 +25,7 @@ void SMUCNGPerfAnalyzer::compute(U_Ptr unit) {
auto timestamp = getTimestamp(); //ToDo timestamp minus some time...
auto outputs = unit->getOutputs();
for(auto& outSensor : outputs){
if(outSensor->getName().find('cpi') != std::string::npos){
if(outSensor->getName().find("cpi") != std::string::npos){
vector<reading_t> * bufferInstructions = nullptr;
bufferInstructions = _queryEngine.querySensor(inputs[_metricToPosition[SMUCSensorBase::INSTRUCTIONS]]->getName(), timestamp, timestamp, bufferInstructions, false); //use absolute timestamp
vector<reading_t> * bufferClocks = nullptr;
......@@ -37,11 +37,11 @@ void SMUCNGPerfAnalyzer::compute(U_Ptr unit) {
if(wascalced) {
outSensor->storeReading(clockspersecond);
}
} else if(outSensor->getName().find('frequency') != std::string::npos){
} else if(outSensor->getName().find("frequency") != std::string::npos){
const unsigned int MAX_FREQ_MHZ = 2700;
const unsigned int MIN_FREQ_MHZ = 1200;
vector<reading_t> * bufferClocks = nullptr;
bufferClocks = _queryEngine.querySensor(inputs[_metricToPosition[SMUCSensorBase::INSTRUCTIONS]]->getName(), timestamp, timestamp, bufferClocks, false); //use absolute timestamp
bufferClocks = _queryEngine.querySensor(inputs[_metricToPosition[SMUCSensorBase::CLOCKS]]->getName(), timestamp, timestamp, bufferClocks, false); //use absolute timestamp
vector<reading_t> * bufferClockRef = nullptr;
bufferClockRef = _queryEngine.querySensor(inputs[_metricToPosition[SMUCSensorBase::CLOCKS]]->getName(), timestamp, timestamp, bufferClockRef, false); //use absolute timestamp
reading_t frequency;
......
......@@ -25,7 +25,7 @@ void SMUCNGPerfConfigurator::sensorBase(SMUCSensorBase& s, CFG_VAL config) {
_metricToPosition[SMUCSensorBase::INSTRUCTIONS] = position;
} else if(name.compare("clocks") == 0){
_metricToPosition[SMUCSensorBase::CLOCKS] = position;
} else if(name.compare("clocksref") == 0){
} else if(name.compare("ref_clocks") == 0){
_metricToPosition[SMUCSensorBase::CLOCKS_REF] = position;
}
} else if (boost::iequals(val.first, "scaling_factor")){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment