本文整理汇总了Python中sst.setStatisticOutput函数的典型用法代码示例。如果您正苦于以下问题:Python setStatisticOutput函数的具体用法?Python setStatisticOutput怎么用?Python setStatisticOutput使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setStatisticOutput函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: int
print "\n###########################\nDumping global config parameters:"
for key in g_params:
print key + " " + g_params[key]
print "###########################\n"
numChannels = int(g_params["numChannels"])
maxOutstandingReqs = numChannels*64
numTxnPerCycle = numChannels
maxTxns = 100000 * numChannels
# Define SST core options
sst.setProgramOption("timebase", g_params["clockCycle"])
sst.setProgramOption("stopAtCycle", g_params["stopAtCycle"])
sst.setStatisticLoadLevel(7)
sst.setStatisticOutput("sst.statOutputConsole")
#########################################################################################################
## Configure transaction generator
comp_txnGen = sst.Component("TxnGen", "CramSim.c_TxnGen")
comp_txnGen.addParams(g_params)
comp_txnGen.addParams({
"maxTxns" : maxTxns,
"numTxnPerCycle" : numTxnPerCycle,
"maxOutstandingReqs" : maxOutstandingReqs,
"readWriteRatio" : 0.5
})
comp_txnGen.enableAllStatistics()
开发者ID:allevin,项目名称:sst-elements,代码行数:30,代码来源:test_txngen.py
示例2: range
"clock": clock,
"maxcorequeue": 256,
"maxissuepercycle": 2,
"pipetimeout": 0,
"corecount": corecount,
"arielmode": 1,
"memorylevels": 1,
"pagecount0": num_pages,
"pagesize0": pageSize * 1024,
"arielstack": 1,
"defaultlevel": 0,
}
)
sieveId = sst.Component("sieve", "memHierarchy.Sieve")
sieveId.addParams({"cache_size": "8MB", "associativity": 16, "cache_line_size": 64, "output_file": "mallocRank.txt"})
for x in range(corecount):
arielL1Link = sst.Link("cpu_cache_link_%d" % x)
arielL1Link.connect((ariel, "cache_link_%d" % x, busLat), (sieveId, "cpu_link_%d" % x, busLat))
arielALink = sst.Link("cpu_alloc_link_%d" % x)
arielALink.connect((ariel, "alloc_link_%d" % x, busLat), (sieveId, "alloc_link_%d" % x, busLat))
statoutputs = dict([(1, "sst.statOutputConsole"), (2, "sst.statOutputCSV"), (3, "sst.statOutputTXT")])
sst.setStatisticLoadLevel(7)
sst.setStatisticOutput(statoutputs[2])
sst.enableAllStatisticsForAllComponents()
print "done configuring SST"
开发者ID:gthparch,项目名称:sst-elements,代码行数:30,代码来源:sieve-test.py
示例3: Levels
sst.setProgramOption("timebase", "1 ps")
sst.setProgramOption("stopAtCycle", "200ns")
########################################################################
########################################################################
# Set the Statistic Load Level; Statistics with Enable Levels (set in
# elementInfoStatistic) lower or equal to the load can be enabled (default = 0)
sst.setStatisticLoadLevel(7)
# Set the desired Statistic Output (sst.statOutputConsole is default)
#sst.setStatisticOutput("sst.statOutputConsole")
#sst.setStatisticOutput("sst.statOutputTXT", {"filepath" : "./TestOutput.txt"
# })
sst.setStatisticOutput("sst.statOutputCSV", {"filepath" : "./TestOutput.csv",
"separator" : ", "
})
#sst.setStatisticOutputOptions({"outputtopheader" : "1",
# "outputinlineheader" : "1",
# "outputsimtime": "1",
# "outputrank": "1",
# "help" : "help" })
#sst.setStatisticOutputOption("outputtopheader", "1")
#sst.setStatisticOutputOption("outputinlineheader", "1")
#sst.setStatisticOutputOption("outputsimtime", "1")
#sst.setStatisticOutputOption("outputrank", "1")
#sst.setStatisticOutputOption("help", "help")
########################################################################
########################################################################
开发者ID:GrantMackey-WDC,项目名称:sst-elements,代码行数:31,代码来源:test_simpleStatisticsComponent.py
示例4: period
if ( stats != 0 ):
print "Statistic dump period (0 = end of sim only):"
rate = raw_input();
if ( rate == "" ):
rate = "0"
sst.setStatisticLoadLevel(stats)
print "Please select statistics output type:"
for (x,y) in statoutputs.iteritems():
print "[ %d ] %s" % (x, y)
output = int(raw_input())
if output not in statoutputs:
print "Bad answer. try again."
sys.exit(1)
sst.setStatisticOutput(statoutputs[output]);
if (output != 1):
print "Filename for stats output:"
filename = raw_input()
sst.setStatisticOutputOptions({
"filepath" : filename,
"separator" : ", "
})
endPoint.enableAllStatistics(rate)
topo.prepParams()
endPoint.prepParams()
topo.setEndPoint(endPoint)
topo.build()
开发者ID:h4u5,项目名称:sst-elements,代码行数:31,代码来源:networkGen.py
示例5: str
mem.addParams(mem_params)
dc = sst.Component("dc_" + str(next_memory_ctrl_id), "memHierarchy.DirectoryController")
dc.addParams({
"network_address" : next_network_id,
"addr_range_start" : next_memory_ctrl_id * mem_interleave_size,
"addr_range_end" : (memory_capacity * 1024 * 1024) - (groups * memory_controllers_per_group * mem_interleave_size) + (next_memory_ctrl_id * mem_interleave_size)
})
dc.addParams(dc_params)
memLink = sst.Link("mem_link_" + str(next_memory_ctrl_id))
memLink.connect((mem, "direct_link", ring_latency), (dc, "memory", ring_latency))
netLink = sst.Link("dc_link_" + str(next_memory_ctrl_id))
netLink.connect((dc, "network", ring_latency), (router_map["rtr." + str(next_network_id)], "port2", ring_latency))
next_network_id = next_network_id + 1
next_memory_ctrl_id = next_memory_ctrl_id + 1
# Enable SST Statistics Outputs for this simulation
sst.setStatisticLoadLevel(4)
sst.enableAllStatisticsForAllComponents({"type":"sst.AccumulatorStatistic"})
sst.setStatisticOutput("sst.statOutputCSV")
sst.setStatisticOutputOptions( {
"filepath" : "./stats-snb-ariel.csv",
"separator" : ", "
} )
print "Completed configuring the SST Sandy Bridge model"
开发者ID:shavvn,项目名称:sst-elements,代码行数:30,代码来源:ariel_snb.py
示例6:
"backend.access_time" : "100 ns",
"backend.mem_size" : "4096MiB",
"backend.system_ini" : "system.ini",
"backend.device_ini" : "DDR3_micron_32M_8B_x4_sg125.ini",
"clock" : "1 GHz",
"request_width" : "128"
})
# Define the SST Component Statistics Information
# Define SST Statistics Options:
sst.setStatisticLoadLevel(7)
sst.setStatisticOutput("sst.statoutputcsv", {
"separator" : ",",
"filepath" : "sst.stat.csv",
"outputtopheader" : 1,
"outputsimtime" : 1,
"outputrank" : 1,
})
# Define Component Statistics Information:
sst.enableAllStatisticsForComponentType("memHierarchy.Cache")
sst.enableAllStatisticsForComponentType("memHierarchy.MemController")
#comp_core0l1dcache.enableAllStatistics({"type":"sst.AccumulatorStatistic", "rate":"0ns", "startat":"0ns", "stopat":"0ns"})
# Define SST Simulation Link Information
link_c0_icache = sst.Link("link_c0_icachec0_icache")
link_c0_icache.connect( (comp_gpu0, "core0-icache", "1000ps"), (comp_core0l1icache, "high_network_0", "1000ps") )
link_c0_dcache = sst.Link("link_c0_dcachec0_dcache")
link_c0_dcache.connect( (comp_gpu0, "core0-dcache", "1000ps"), (comp_core0l1dcache, "high_network_0", "1000ps") )
开发者ID:shavvn,项目名称:sst-elements,代码行数:31,代码来源:macsim_dramsim.py
注:本文中的sst.setStatisticOutput函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论