Function to show the thresoulds config.
Readme updated.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user