f0af389910
Modify the orte-bootproxy to pass prefix for the remote slave to support hetero/hybrid scenarios This commit was SVN r20492.
31 строка
582 B
Bash
Исполняемый файл
31 строка
582 B
Bash
Исполняемый файл
#! /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
|
|
if [ "${var:6:6}" = "PREFIX" ]; then
|
|
export LD_LIBRARY_PATH="${var:12}":$LD_LIBRARY_PATH
|
|
else
|
|
export $var
|
|
shift 1
|
|
var=$1
|
|
fi
|
|
done
|
|
|
|
# extract the application to be executed
|
|
app=$1
|
|
shift 1
|
|
|
|
#exec the app with the remaining args
|
|
exec "$app" "$@"
|