1
1

Add a shellscript for daemon-less launch of local slave processes. No manpage as this is totally for internal use only.

This commit was SVN r20436.
Этот коммит содержится в:
Ralph Castain 2009-02-05 06:05:28 +00:00
родитель 73ea7a9aa5
Коммит 0d447511a5
4 изменённых файлов: 67 добавлений и 0 удалений

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

@ -1364,6 +1364,7 @@ AC_CONFIG_FILES([
orte/tools/orte-ps/Makefile
orte/tools/orte-clean/Makefile
orte/tools/orte-top/Makefile
orte/tools/orte-bootproxy/Makefile
ompi/Makefile
ompi/etc/Makefile

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

@ -22,6 +22,7 @@
# orte/Makefile.am
SUBDIRS += \
tools/orte-bootproxy \
tools/orte-checkpoint \
tools/orte-clean \
tools/orte-iof \
@ -33,6 +34,7 @@ SUBDIRS += \
tools/orte-top
DIST_SUBDIRS += \
tools/orte-bootproxy \
tools/orte-checkpoint \
tools/orte-clean \
tools/orte-iof \

38
orte/tools/orte-bootproxy/Makefile.am Обычный файл
Просмотреть файл

@ -0,0 +1,38 @@
#
# Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
# University Research and Technology
# Corporation. All rights reserved.
# Copyright (c) 2004-2005 The University of Tennessee and The University
# of Tennessee Research Foundation. All rights
# reserved.
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
# University of Stuttgart. All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
# All rights reserved.
# Copyright (c) 2008 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
include $(top_srcdir)/Makefile.man-page-rules
if !ORTE_DISABLE_FULL_SUPPORT
if OMPI_INSTALL_BINARIES
install-exec-hook:
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
cp $(top_builddir)/orte/tools/orte-bootproxy/orte-bootproxy.sh $(DESTDIR)$(bindir)
chmod 755 $(DESTDIR)$(bindir)/orte-bootproxy.sh
endif # OMPI_INSTALL_BINARIES
uninstall-local:
rm -f $(DESTDIR)$(bindir)/orte-bootproxy.sh
endif # !ORTE_DISABLE_FULL_SUPPORT
distclean-local:

26
orte/tools/orte-bootproxy/orte-bootproxy.sh Исполняемый файл
Просмотреть файл

@ -0,0 +1,26 @@
#! /bin/bash
#
# Copyright (c) 2009 Los Alamos National Security, LLC. All rights reserved
#
if (( $# < 1 )) ; then
echo "orte-bootproxy.sh: for OMPI internal use only"
exit 1
fi
# take the first arg
var=$1
# push all MCA params to the environment
while [ "${var:0:5}" = "OMPI_" ]; do
export $var
shift 1
var=$1
done
# extract the application to be executed
app=$1
shift 1
#exec the app with the remaining args
exec "$app" "$@"