示例#1
0
#load in profile and map dict
#************************
f_ss = open("ss_profiles.dict", 'r')
ss_profiles = pickle.load(f_ss)
f_ss.close()

f_map = open("map_route.dict", 'r')
map_route = pickle.load(f_map)
f_map.close()

#************************
# Get the corresponding Profiles for current Smotif
#************************
s1, s2 = map_route['map_route'][0][0], map_route['map_route'][0][1]
s1_list, s2_list = ud.getPairSSProfiles(s1, s2, ss_profiles)
run_seq = ud.getRunSeq(s1_list, s2_list)

#************************
# Schedule Jobs
#************************

machines=ud.parseMachines('mpi_hostfile')
pwd=commands.getoutput('pwd')
user='******'
passwd=''
index=0
while (index != len(run_seq)):    
    for machine in machines:
        if index == len(run_seq):
            break
        cmd1 = "cat /proc/loadavg"
示例#2
0
# Get the corresponding Profiles for current Smotif
#************************

profile = ud.getSSProfile(ss_profiles,csmotif)
print profile

init_data = ud.testinitData('population')
population = init_data[0]

if ud.stitchData(psmotif):
    top_dict, top_list = ud.getUniqueTop(psmotif, population, cutoff=90.0)
    print top_list
for tl in top_list:
    print tl
    print top_dict[tl][-2]
run_seq = ud.getRunSeq(top_list, profile)

#************************
# Schedule Jobs
#************************

machines=ud.parseMachines('mpi_hostfile')
pwd=commands.getoutput('pwd')
user='******'
passwd=''
index=0
while (index != len(run_seq)):    
    for machine in machines:
        if index == len(run_seq):
            break
        cmd1 = "cat /proc/loadavg"