Exemple #1
0
        if a == "True":
            rndmPlacement = True
    elif o in ("--bgPercentage"):
        bgPercentage = int(a)
    elif o in ("--bgMean"):
        bgMean = int(a)
    elif o in ("--bgStddev"):
        bgStddev = int(a)
    elif o in ("--bgMsgSize"):
        bgMsgSize = int(a)
    else:
        assert False, "unhandle option"

if 1 == len(sys.argv):
    workFlow, numNodes, numCores = defaultSim.getWorkFlow(motifDefaults)
    platform, netTopo, netShape = defaultSim.getNetwork()

if workFlow:
    workList.append([jobid, workFlow])
    jobid += 1

print "EMBER: platform: {0}".format(platform)

platNetConfig = {}
if platform == "default":
    nicParams = defaultParams.nicParams
    networkParams = defaultParams.networkParams
    hermesParams = defaultParams.hermesParams
    emberParams = defaultParams.emberParams

elif platform == "chamaPSM":
Exemple #2
0
        if a == "True":
            rndmPlacement = True
    elif o in ("--bgPercentage"):
        bgPercentage = int(a)
    elif o in ("--bgMean"):
        bgMean = int(a) 
    elif o in ("--bgStddev"):
        bgStddev = int(a) 
    elif o in ("--bgMsgSize"):
        bgMsgSize = int(a) 
    else:
        assert False, "unhandle option" 

if 1 == len(sys.argv):
	workFlow, numNodes, numCores = defaultSim.getWorkFlow( motifDefaults )
	platform, netTopo, netShape = defaultSim.getNetwork( )

if workFlow:
	workList.append( [jobid, workFlow] )
	jobid += 1

print "EMBER: platform: {0}".format( platform )

platNetConfig = {}
if platform == "default":
    nicParams = defaultParams.nicParams
    networkParams = defaultParams.networkParams
    hermesParams = defaultParams.hermesParams
    emberParams = defaultParams.emberParams 

elif platform == "chamaPSM":