diff --git a/DRAMSys/simulator/src/controller/core/configuration/temperatureSimConfig.h b/DRAMSys/simulator/src/controller/core/configuration/temperatureSimConfig.h index 4d407569..47801967 100644 --- a/DRAMSys/simulator/src/controller/core/configuration/temperatureSimConfig.h +++ b/DRAMSys/simulator/src/controller/core/configuration/temperatureSimConfig.h @@ -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); diff --git a/README.md b/README.md index 2ba6dbb1..44fc6227 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ The XML code below shows a typic configuration: + @@ -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**