void GStatsEnergy::printDump(int procId, int cycle) { double pVals[MaxPowerGroup]; for(int c=0; c < MaxPowerGroup; c++) pVals[c] = 0.0; I((unsigned int)procId < eProcStore.size()); // calculate the values for(size_t i=0;i<eProcStore[procId].size();i++) { GStatsEnergy *e = eProcStore[procId][i]; double pwr = EnergyMgr::etop(e->getDouble()); EnergyGroup eg = static_cast<EnergyGroup>(e->getGid()) ; // change 11/29/04 DVDB PowerGroup pg = EnergyStore::getPowerGroup(eg); ReportTherm::field("%f\t", EnergyMgr::etop(e->getDouble())); pVals[static_cast<unsigned int>(pg)] += pwr; } }
void GStatsEnergy::printDump(int32_t procId) { I((uint32_t)procId < eProcStore.size()); // dump values for(size_t i=0;i<eProcStore[procId].size();i++) { GStatsEnergy *e = eProcStore[procId][i]; double pwr = EnergyMgr::etop(e->getDouble()); ReportTherm::fieldRaw(pwr); } }
double GStatsEnergy::getTotalProc(int32_t procId) { double total=0; I((uint32_t)procId < eProcStore.size()); for(size_t i=0;i<eProcStore[procId].size();i++) { GStatsEnergy *e = eProcStore[procId][i]; total += e->getDouble(); } return total; }
void GStatsEnergy::setupDump(int procId) { I((unsigned int)procId < eProcStore.size()); //ReportTherm::field("%d\n", eProcStore[procId].size()); for (size_t i = 0; i < eProcStore[procId].size(); i++) { GStatsEnergy *e = eProcStore[procId][i]; double pwr = EnergyMgr::etop(e->getDouble()); EnergyGroup eg = static_cast<EnergyGroup>(e->getGid()) ; PowerGroup pg = EnergyStore::getPowerGroup(eg); ReportTherm::field("%s\t", e->name); } }
void GStatsEnergy::dump(int32_t procId) { double pVals[MaxPowerGroup]; for(int32_t c=0; c < MaxPowerGroup; c++) pVals[c] = 0.0; I((uint32_t)procId < eProcStore.size()); // calculate the values for(size_t i=0;i<eProcStore[procId].size();i++) { GStatsEnergy *e = eProcStore[procId][i]; pVals[e->getGid()] += EnergyMgr::etop(e->getDouble()); } // dump the values for(int32_t j=1; j < ClockPower;j++) Report::field("Proc(%d):%s=%g",procId, EnergyStore::getStr(static_cast<PowerGroup>(j)), pVals[j]); }
void GStatsEnergy::setupDump(int32_t procId) { I((uint32_t)procId < eProcStore.size()); for (size_t i = 0; i < eProcStore[procId].size(); i++) { GStatsEnergy *e = eProcStore[procId][i]; ReportTherm::field("%s\t", e->name); } ReportTherm::field("\n"); #if 0 for (size_t i = 0; i < eProcStore[procId].size(); i++) { GStatsEnergy *e = eProcStore[procId][i]; e->inc(); // charge unit energy to compute power densities double pwr = EnergyMgr::etop(e->getDouble()); ReportTherm::field("%g\t", pwr); } ReportTherm::field("\n"); #endif }