summaryrefslogtreecommitdiff
path: root/src/gpuwattch/XML_Parse.cc
diff options
context:
space:
mode:
authorJingwen Leng (UT Austin) <[email protected]>2013-10-15 19:05:58 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:59 -0700
commitda74edd77d3effb3da82090c05ebd3a1f3965f1f (patch)
treedcd310e14a7a343f285a4408374d72a9c43db194 /src/gpuwattch/XML_Parse.cc
parent3c71147d4138fbed4334a70c80b70a54539cce35 (diff)
fix dram sampling interval scaling
fix dram clock energy scaling [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17124]
Diffstat (limited to 'src/gpuwattch/XML_Parse.cc')
-rw-r--r--src/gpuwattch/XML_Parse.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gpuwattch/XML_Parse.cc b/src/gpuwattch/XML_Parse.cc
index 8e33f3f..39bf2a1 100644
--- a/src/gpuwattch/XML_Parse.cc
+++ b/src/gpuwattch/XML_Parse.cc
@@ -1586,6 +1586,15 @@ void ParseXML::parse(char* filepath)
if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"type")==0) {sys.mc.type=atoi(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"withPHY")==0) {sys.mc.withPHY=(bool)atoi(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
+ if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"dram_cmd_coeff")==0) {sys.mc.dram_cmd_coeff=atof(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
+ if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"dram_act_coeff")==0) {sys.mc.dram_act_coeff=atof(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
+ if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"dram_nop_coeff")==0) {sys.mc.dram_nop_coeff=atof(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
+ if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"dram_activity_coeff")==0) {sys.mc.dram_activity_coeff=atof(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
+ if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"dram_pre_coeff")==0) {sys.mc.dram_pre_coeff=atof(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
+ if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"dram_rd_coeff")==0) {sys.mc.dram_rd_coeff=atof(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
+ if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"dram_wr_coeff")==0) {sys.mc.dram_wr_coeff=atof(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
+ if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"dram_req_coeff")==0) {sys.mc.dram_req_coeff=atof(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
+ if (strcmp(xNode3.getChildNode("param",k).getAttribute("name"),"dram_const_coeff")==0) {sys.mc.dram_const_coeff=atof(xNode3.getChildNode("param",k).getAttribute("value"));continue;}
}
itmp=xNode3.nChildNode("stat");
for(k=0; k<itmp; k++)
@@ -2069,6 +2078,7 @@ void ParseXML::initialize() //Initialize all
sys.mem.memory_accesses=1;
sys.mem.memory_reads=1;
sys.mem.memory_writes=1;
+
//system_mc
sys.mc.mc_clock =1;
sys.mc.number_mcs=1;
@@ -2084,6 +2094,7 @@ void ParseXML::initialize() //Initialize all
sys.mc.memory_writes=1;
sys.mc.LVDS=true;
sys.mc.type=1;
+
//system_niu
sys.niu.clockrate =1;
sys.niu.number_units=1;