本文整理汇总了Python中sst.setStatisticLoadLevel函数的典型用法代码示例。如果您正苦于以下问题:Python setStatisticLoadLevel函数的具体用法?Python setStatisticLoadLevel怎么用?Python setStatisticLoadLevel使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setStatisticLoadLevel函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: int
if "dumpConfig" in g_params and int(g_params["dumpConfig"]):
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()
示例2: LoadInfo
loadInfo = LoadInfo( nicParams, epParams, numNodes, numCores, topoInfo.getNumNodes() )
if len(loadFile) > 0:
if len(workList) > 0:
sys.exit("Error: can't specify both loadFile and cmdLine");
loadInfo.initFile( motifDefaults, loadFile, statNodeList )
else:
if len(workList) > 0:
if len(loadFile) > 0:
sys.exit("Error: can't specify both loadFile and cmdLine");
loadInfo.initWork( workList, statNodeList )
else:
sys.exit("Error: need a loadFile or cmdLine")
topo.prepParams()
topo.setEndPointFunc( loadInfo.setNode )
topo.build()
'''
sst.setStatisticLoadLevel(8)
sst.setStatisticOutput("sst.statOutputCSV")
sst.setStatisticOutputOptions( {"filepath" : "%s" %(networkStatOut), "separator" : ", " } )
sst.enableAllStatisticsForComponentType("merlin.hr_router")
'''
示例3: level
sys.exit(1)
endPoint = endpoints[ep];
sst.merlin._params["xbar_arb"] = "merlin.xbar_arb_lru"
print "Set statistics load level (0 = off):"
stats = int(raw_input())
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,
示例4: range
for x in range (0, mesh_stops_x):
# North-south connections
if y != (mesh_stops_y -1):
kRtrReqNS = sst.Link("krtr_req_ns_" + str(i))
kRtrReqNS.connect( (kRtrReq[i], "south", mesh_link_latency), (kRtrReq[i + mesh_stops_x], "north", mesh_link_latency) )
kRtrAckNS = sst.Link("krtr_ack_ns_" + str(i))
kRtrAckNS.connect( (kRtrAck[i], "south", mesh_link_latency), (kRtrAck[i + mesh_stops_x], "north", mesh_link_latency) )
kRtrFwdNS = sst.Link("krtr_fwd_ns_" + str(i))
kRtrFwdNS.connect( (kRtrFwd[i], "south", mesh_link_latency), (kRtrFwd[i + mesh_stops_x], "north", mesh_link_latency) )
kRtrDataNS = sst.Link("krtr_data_ns_" + str(i))
kRtrDataNS.connect( (kRtrData[i], "south", mesh_link_latency), (kRtrData[i + mesh_stops_x], "north", mesh_link_latency) )
if x != (mesh_stops_x - 1):
kRtrReqEW = sst.Link("krtr_req_ew_" + str(i))
kRtrReqEW.connect( (kRtrReq[i], "east", mesh_link_latency), (kRtrReq[i+1], "west", mesh_link_latency) )
kRtrAckEW = sst.Link("krtr_ack_ew_" + str(i))
kRtrAckEW.connect( (kRtrAck[i], "east", mesh_link_latency), (kRtrAck[i+1], "west", mesh_link_latency) )
kRtrFwdEW = sst.Link("krtr_fwd_ew_" + str(i))
kRtrFwdEW.connect( (kRtrFwd[i], "east", mesh_link_latency), (kRtrFwd[i+1], "west", mesh_link_latency) )
kRtrDataEW = sst.Link("krtr_data_ew_" + str(i))
kRtrDataEW.connect( (kRtrData[i], "east", mesh_link_latency), (kRtrData[i+1], "west", mesh_link_latency) )
setNodeDist(i, kRtrReq[i], kRtrAck[i], kRtrFwd[i], kRtrData[i])
i = i + 1
# Enable SST Statistics Outputs for this simulation
sst.setStatisticLoadLevel(16)
sst.enableAllStatisticsForAllComponents({"type":"sst.AccumulatorStatistic"})
sst.setStatisticOutput("sst.statOutputConsole")