From 4c82592d0ab2cf432ec3662e65277fa18d9b8d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Wed, 30 Sep 2015 10:12:34 +0200 Subject: [PATCH] Function to show the thresoulds config. Readme updated. --- .../core/configuration/temperatureSimConfig.h | 14 +++++++++++++- README.md | 3 +++ 2 files changed, 16 insertions(+), 1 deletion(-) 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**