- echo "+" ${COMMAND}
- # For files creation we can use -np equal to NUM_DIRS
- # This is just a test preparation, does not matter how many threads we use for files creation;
- # we just should be aware that NUM_DIRS is less than or equal to the number of threads np
- mpi_run -np ${NUM_DIRS} -machinefile ${MACHINEFILE} ${COMMAND} 2>&1
-
- # No lookup if error occurs on file creation, abort.
- [ ${PIPESTATUS[0]} != 0 ] && error "mdsrate file creation failed, aborting"
+ echo "+" ${COMMAND}
+ # For files creation we can use -np equal to NUM_DIRS
+ # This is just a test preparation, does not matter how many threads we
+ # use for files creation; we just should be aware that NUM_DIRS is less
+ # than or equal to the number of threads np
+ mpi_run ${MACHINEFILE_OPTION} ${MACHINEFILE} -np ${NUM_DIRS} \
+ ${COMMAND} 2>&1
+
+ # No lookup if error occurs on file creation, abort.
+ if [ ${PIPESTATUS[0]} != 0 ]; then
+ error_noexit "mdsrate file creation failed, aborting"
+ mdsrate_cleanup_all
+ exit 1
+ fi