Loading ObservationSim/ObservationSim.py +7 −9 Original line number Diff line number Diff line Loading @@ -119,8 +119,7 @@ class Observation(object): chip_output.Log_info("check running:1: pointing-%d chip-%d pid-%d memory-%6.2fGB"%(pointing.id, chip.chipID, os.getpid(), (psutil.Process(os.getpid()).memory_info().rss / 1024 / 1024 / 1024) )) del chip.img def runExposure_MPI_PointingList(self, pointing_list, chips=None, use_mpi=False): if use_mpi: def runExposure_MPI_PointingList(self, pointing_list, chips=None): comm = MPI.COMM_WORLD ind_thread = comm.Get_rank() num_thread = comm.Get_size() Loading Loading @@ -158,7 +157,7 @@ class Observation(object): run_filts = self.filter_list nchips_per_fp = len(self.chip_list) else: # Only run a particular set of chips (defined in the overall config file) # Only run a particular set of chips run_chips = [] run_filts = [] for ichip in range(len(self.chip_list)): Loading @@ -171,7 +170,6 @@ class Observation(object): for ichip in range(nchips_per_fp): i_process = process_counter + ichip if use_mpi: if i_process % num_thread != ind_thread: continue pid = os.getpid() Loading config/config_50sqdeg.yaml +0 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,6 @@ run_name: "testRun0" # Whether to use MPI run_option: use_mpi: YES # NOTE: "n_threads" paramters is currently not used in the backend # simulation codes. It should be implemented later in the web frontend # in order to config the number of threads to request from NAOC cluster Loading config/config_C6.yaml +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ run_counter: 1 # Whether to use MPI run_option: use_mpi: NO # NOTE: "n_threads" paramters is currently not used in the backend # simulation codes. It should be implemented later in the web frontend # in order to config the number of threads to request from NAOC cluster Loading config/config_C6_dev.yaml +0 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ run_counter: 1 # Whether to use MPI run_option: use_mpi: NO # NOTE: "n_threads" paramters is currently not used in the backend # simulation codes. It should be implemented later in the web frontend # in order to config the number of threads to request from NAOC cluster Loading config/config_C6_fits.yaml +0 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ run_counter: 1 # Whether to use MPI run_option: use_mpi: YES # NOTE: "n_threads" paramters is currently not used in the backend # simulation codes. It should be implemented later in the web frontend # in order to config the number of threads to request from NAOC cluster Loading Loading
ObservationSim/ObservationSim.py +7 −9 Original line number Diff line number Diff line Loading @@ -119,8 +119,7 @@ class Observation(object): chip_output.Log_info("check running:1: pointing-%d chip-%d pid-%d memory-%6.2fGB"%(pointing.id, chip.chipID, os.getpid(), (psutil.Process(os.getpid()).memory_info().rss / 1024 / 1024 / 1024) )) del chip.img def runExposure_MPI_PointingList(self, pointing_list, chips=None, use_mpi=False): if use_mpi: def runExposure_MPI_PointingList(self, pointing_list, chips=None): comm = MPI.COMM_WORLD ind_thread = comm.Get_rank() num_thread = comm.Get_size() Loading Loading @@ -158,7 +157,7 @@ class Observation(object): run_filts = self.filter_list nchips_per_fp = len(self.chip_list) else: # Only run a particular set of chips (defined in the overall config file) # Only run a particular set of chips run_chips = [] run_filts = [] for ichip in range(len(self.chip_list)): Loading @@ -171,7 +170,6 @@ class Observation(object): for ichip in range(nchips_per_fp): i_process = process_counter + ichip if use_mpi: if i_process % num_thread != ind_thread: continue pid = os.getpid() Loading
config/config_50sqdeg.yaml +0 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,6 @@ run_name: "testRun0" # Whether to use MPI run_option: use_mpi: YES # NOTE: "n_threads" paramters is currently not used in the backend # simulation codes. It should be implemented later in the web frontend # in order to config the number of threads to request from NAOC cluster Loading
config/config_C6.yaml +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ run_counter: 1 # Whether to use MPI run_option: use_mpi: NO # NOTE: "n_threads" paramters is currently not used in the backend # simulation codes. It should be implemented later in the web frontend # in order to config the number of threads to request from NAOC cluster Loading
config/config_C6_dev.yaml +0 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ run_counter: 1 # Whether to use MPI run_option: use_mpi: NO # NOTE: "n_threads" paramters is currently not used in the backend # simulation codes. It should be implemented later in the web frontend # in order to config the number of threads to request from NAOC cluster Loading
config/config_C6_fits.yaml +0 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ run_counter: 1 # Whether to use MPI run_option: use_mpi: YES # NOTE: "n_threads" paramters is currently not used in the backend # simulation codes. It should be implemented later in the web frontend # in order to config the number of threads to request from NAOC cluster Loading