#!/bin/sh # Simple wrapper around mpiexec to select the appropriate binary. # DO NOT CREATE SYMBOLIC LINKS TO THIS SCRIPT. # Copyright 2006 The MathWorks, Inc. # dummy check_archlist for arch.sh check_archlist () { return 0 } # The following line assumes that this script is not being run via a symbolic # link. bindir=`dirname $0` # This will set ARCH for us - ensure it's unset first ARCH= . "${bindir}/util/arch.sh" # Call the correct mpiexec with the arguments we were given exec "${bindir}/${ARCH}/mpiexec" "${@}" # NOTE - it is assumed that mw_mpiexec replaces itself with mpiexec and does # not spawn mpiexec as a subprocess. Several scripts will break if this # assumption is changed.