Function to show the thresoulds config.

Readme updated.
This commit is contained in:
Éder F. Zulian
2015-09-30 10:12:34 +02:00
parent 1160f575dc
commit 4c82592d0a
2 changed files with 16 additions and 1 deletions

View File

@@ -94,8 +94,20 @@ struct TemperatureSimConfig {
printDebugMessage("Unknown element ignored: " + name);
}
}
showTemperatureSimConfig();
}
void showTemperatureSimConfig()
{
for (auto e : cpuPowerThresholds)
printDebugMessage("CPU[" + std::to_string(e.first) + "] threshold is " + std::to_string(e.second));
for (auto e : gpuPowerThresholds)
printDebugMessage("GPU[" + std::to_string(e.first) + "] threshold is " + std::to_string(e.second));
for (auto e : dramPowerThresholds)
printDebugMessage("DRAM[" + std::to_string(e.first) + "] threshold is " + std::to_string(e.second));
}
void printDebugMessage(std::string message)
{
DebugManager::getInstance().printDebugMessage("Temperature Sim Config", message);

View File

@@ -140,6 +140,7 @@ The XML code below shows a typic configuration:
<StaticTemperatureDefaultValue value="89" />
<DynTemperatureSimPeriod value="100" />
<DynTemperatureSimUnit value="ms" />
<PowerThresholdsFile value="../../DRAMSys/simulator/resources/configs/temperature_sim/power_thresholds.xml"/>
</temperature_simconfig>
<!-- Memory Specifications -->
@@ -255,6 +256,8 @@ Below are listed the configuration sections and configuration fields.
- "ns": nanoseconds
- "ps": picoseconds
- "fs": femtoseconds
- *PowerThresholdsFile* (string)
- File containing the power thresholds that trigger the temperature simulation
- **Memory Specification**