def create(name_list, queue, n, percent, dir_name): current_path = os.getcwd() mypath = os.path.join(current_path, dir_name) create_directory_structure(mypath) groups = create_node_groups(name_list,n) for i in range(len(groups)): render(mypath, queue, groups[i], percent)
def create(name_list, queue, n, percent, dir_name): current_path = os.getcwd() mypath = os.path.join(current_path, dir_name) create_directory_structure(mypath) groups = create_node_groups(name_list, n) for i in range(len(groups)): render(mypath, queue, groups[i], percent)
def create(node_list, queue): current_path = os.getcwd() mypath = os.path.join(current_path, "nodes") create_directory_structure(mypath) for node in node_list: # create the pbs command values = {} values['node_name'] = node values['queue_name'] = queue create_pbs_template(values, mypath)
def create(node_list, queue): current_path = os.getcwd() mypath = os.path.join(current_path,"nodes") create_directory_structure(mypath) for node in node_list: # create the pbs command values = {} values['node_name'] = node values['queue_name'] = queue create_pbs_template(values, mypath)
def create(name_list, queue): current_path = os.getcwd() mypath = os.path.join(current_path,"bandwidth") create_directory_structure(mypath) pair_list = create_node_pairs(name_list) for pair in pair_list: node_list = pair[0] + ":ppn=12+" + pair[1] + ":ppn=12" job_name = pair[0] + "-" + pair[1] values = {} values['job_name'] = job_name values['queue_name'] = queue values['node_list'] = node_list create_pbs_template(values, mypath)
def create(name_list, queue): current_path = os.getcwd() mypath = os.path.join(current_path, "bandwidth") create_directory_structure(mypath) pair_list = create_node_pairs(name_list) for pair in pair_list: node_list = pair[0] + ":ppn=12+" + pair[1] + ":ppn=12" job_name = pair[0] + "-" + pair[1] values = {} values['job_name'] = job_name values['queue_name'] = queue values['node_list'] = node_list create_pbs_template(values, mypath)