def launch_grid(): hosts = create_host_list(hostlist, tmpdir) for host in hosts: # ugly hack host.init_cmd = imppy + ' !' # pyro grid grid = Grid(hosts, src_path, showX11, X11_delay, grid_debug, grid_verbose, shared_temp_path, nshost, terminate_during_publish, method=grid_method, qsub_config=qsub_config) # uncomment the following lines and comments the two previous ones to use file based grid # file based grid # grid = Grid(hosts, src_path, showX11, X11_delay, grid_debug, # grid_verbose) #grid.shared_temp_path = shared_temp_path if showX11: grid.window_size = window_size grid.copy_files('./', filelist) # grid.copy_files(src_path,["_shared_functions.py"]) # start grid on all nodes grid.start() return grid
def setUp(self): IMP.test.TestCase.setUp(self) #IMP.base.set_log_level(IMP.MEMORY) IMP.base.set_log_level(0) #setup host list self.hostlist = ['localhost'] self.tmpdir = '/tmp' self.src_path = os.path.dirname(IMP.isd.FileBasedGrid.__file__) self.showX11 = False self.X11_delay = 1.0 self.grid_debug = False self.grid_verbose = False self.window_size = '80x25' self.hosts=create_host_list(self.hostlist, self.tmpdir) imppy=os.path.abspath( os.path.join(os.getenv('IMP_DATA'),'../../tools/imppy.sh')) for host in self.hosts: host.init_cmd = imppy + ' !'
def launch_grid(): hosts = create_host_list(hostlist,tmpdir) for host in hosts: #ugly hack host.init_cmd = imppy + ' !' #pyro grid grid = Grid(hosts, src_path, showX11, X11_delay, grid_debug, grid_verbose, shared_temp_path, nshost, terminate_during_publish) #uncomment the following lines and comments the two previous ones to use file based grid #file based grid #grid = Grid(hosts, src_path, showX11, X11_delay, grid_debug, # grid_verbose) #grid.shared_temp_path = shared_temp_path if showX11: grid.window_size = window_size grid.copy_files('./', filelist) #grid.copy_files(src_path,["shared_functions.py"]) #start grid on all nodes grid.start() return grid