Permalink
Browse files

stereo_mpi: Create subproject dirs after pprc finished

  • Loading branch information...
1 parent 4caacad commit 883042fd03a7c2eacc419f8b1d1cc0190034fe89 @oleg-alexandrov oleg-alexandrov committed Mar 8, 2013
Showing with 2 additions and 7 deletions.
  1. +2 −7 src/asp/Tools/stereo_mpi.in
@@ -303,18 +303,12 @@ if __name__ == '__main__':
mpiexec_rank = os.getenv("MPIEXEC_RANK")
- if opt.mpi_nodes is None or opt.mpi_nodes == 1:
- create_subproject_dirs( settings )
-
if opt.mpi_nodes is not None and opt.mpi_nodes > 1 and mpiexec_rank is None:
# Multi-machine execution. This means that the current running
# process has become the management process that spawns other
# copies of itself on other systems. This thread will only do
# work when we hit a non-multiprocess step like PPRC or FLTR.
- # Create subdirectories for sub projects
- create_subproject_dirs( settings )
-
mpi_cmd = ['mpiexec','-comm','none','-np',str(opt.mpi_nodes)]
call_self = sys.argv
if '-e' in call_self:
@@ -329,6 +323,7 @@ if __name__ == '__main__':
if ( opt.entry_point <= 0 ):
# Preprocessing
run('stereo_pprc', args, msg='0: Preprocessing')
+ create_subproject_dirs( settings )
if ( opt.entry_point <= 1 ):
# Correlation
if ( opt.stop_point <= 1 ):
@@ -374,7 +369,7 @@ if __name__ == '__main__':
if ( opt.entry_point <= 0 ):
# Run stereo pprc in single threaded mode
run('stereo_pprc', args, msg='0: Preprocessing')
- pass
+ create_subproject_dirs( settings )
# Define the tiles that we'll be processing on
tiles = produce_tiles( settings, opt.job_size_w, opt.job_size_h );

0 comments on commit 883042f

Please sign in to comment.