1
1

modified to use new mca parameters

This commit was SVN r1531.
Этот коммит содержится в:
Tim Woodall 2004-07-01 19:20:51 +00:00
родитель 6564f8403c
Коммит a047d6093b
2 изменённых файлов: 11 добавлений и 16 удалений

Просмотреть файл

@ -17,10 +17,9 @@
# Some basic defaults # Some basic defaults
# #
###################################################################### ######################################################################
ompi_cellid=""
ompi_jobid=""
ompi_procid="" ompi_procid=""
ompi_numprocs="" ompi_numprocs=""
ompi_jobid=""
ompi_commdir="" ompi_commdir=""
###################################################################### ######################################################################
@ -40,6 +39,11 @@ for i ; do
ompi_cellid="${1}" ompi_cellid="${1}"
shift shift
;; ;;
-jobid)
shift
ompi_jobid="${1}"
shift
;;
-procid) -procid)
shift shift
ompi_procid="${1}" ompi_procid="${1}"
@ -50,11 +54,6 @@ for i ; do
ompi_numprocs="${1}" ompi_numprocs="${1}"
shift shift
;; ;;
-jobid)
shift
ompi_jobid="${1}"
shift
;;
-commdir) -commdir)
shift shift
ompi_commdir="${1}" ompi_commdir="${1}"
@ -85,7 +84,7 @@ if test "${args_err}" != "0" ; then
exit 1 exit 1
fi fi
if test -z "${1}" ; then if test -z "${1}" ; then
echo "Did not find app to execute" echo "Did not find app to execute: " ${1}
exit 2 exit 2
fi fi
@ -99,7 +98,7 @@ export OMPI_MCA_pcm_cofs_jobid="${ompi_jobid}"
export OMPI_MCA_pcm_cofs_procid="${ompi_procid}" export OMPI_MCA_pcm_cofs_procid="${ompi_procid}"
export OMPI_MCA_pcm_cofs_num_procs="${ompi_numprocs}" export OMPI_MCA_pcm_cofs_num_procs="${ompi_numprocs}"
if test ! -z "${ompi_commdir}"; then if test ! -z "${ompi_commdir}"; then
export MCA_common_ompi_cofs_comm_dir="${ompi_commdir}" export OMPI_MCA_oob_cofs_dir="${ompi_commdir}"
fi fi
###################################################################### ######################################################################

Просмотреть файл

@ -26,7 +26,7 @@ ompi_debug=0
# #
###################################################################### ######################################################################
ompi_hostfile="" ompi_hostfile=""
ompi_jobid="" ompi_jobhandle=""
ompi_app_args="" ompi_app_args=""
ompi_mydir="" ompi_mydir=""
ompi_cwd="`pwd`" ompi_cwd="`pwd`"
@ -154,8 +154,8 @@ do_start_proc() {
local cmd="" local cmd=""
cmd="ssh ${rmt_hostname} -f -n ${rmt_boot} " cmd="ssh ${rmt_hostname} -f -n ${rmt_boot} "
cmd="${cmd} -myvpid ${rmt_vpid}" cmd="${cmd} -cellid 1 -jobid ${ompi_jobid} -procid ${rmt_vpid}"
cmd="${cmd} -numprocs ${ompi_numprocs} -cellid 1 -jobid ${ompi_jobid}" cmd="${cmd} -numprocs ${ompi_numprocs}"
cmd="${cmd} -pwd ${ompi_cwd} ${ompi_prepped}" cmd="${cmd} -pwd ${ompi_cwd} ${ompi_prepped}"
if test ! -z "${MCA_common_ompi_cofs_comm_dir}" ; then if test ! -z "${MCA_common_ompi_cofs_comm_dir}" ; then
cmd="${cmd} -commdir ${MCA_common_ompi_cofs_comm_dir}" cmd="${cmd} -commdir ${MCA_common_ompi_cofs_comm_dir}"
@ -244,9 +244,5 @@ make_hosts_list
launch_procs "${ompi_app_args}" launch_procs "${ompi_app_args}"
echo ""
echo "Processes should be running. I'm going to exit now. Need to add sleeping"
echo ""
exit 0 exit 0