Example #1
0
if rtrArb:
    sst.merlin._params["xbar_arb"] = "merlin." + rtrArb

sst.merlin._params.update(topoInfo.getNetworkParams())

epParams = {}
epParams.update(emberParams)
epParams.update(hermesParams)

loadInfo = LoadInfo(nicParams, epParams, numNodes, numCores,
                    topoInfo.getNumNodes(), model)

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()
Example #2
0
print "EMBER: network: BW={0} pktSize={1} flitSize={2}".format(
        networkParams['link_bw'], networkParams['packetSize'], networkParams['flitSize'])

sst.merlin._params.update( topoInfo.getNetworkParams() )

epParams = {} 
epParams.update(emberParams)
epParams.update(hermesParams)


loadInfo = LoadInfo( nicParams, epParams, numNodes, numCores, topoInfo.getNumNodes(), model )

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()