# Copyright 1998-2001, University of Notre Dame.
# Authors: Jeffrey M. Squyres, Arun Rodrigues, and Brian Barrett with
#          Kinis L. Meyer, M. D. McNally, and Andrew Lumsdaine
# 
# This file is part of the Notre Dame LAM implementation of MPI.
# 
# You should have received a copy of the License Agreement for the Notre
# Dame LAM implementation of MPI along with the software; see the file
# LICENSE.  If not, contact Office of Research, University of Notre
# Dame, Notre Dame, IN 46556.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted subject to the conditions specified in the
# LICENSE file.
# 
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# 
# Additional copyrights may follow.
# 
#
# Mandelbrot sample application schema
# mpirun -v myapp
#

#
# Run the master on the node where lamboot was invoked so
# that stdout will be visible.  Change the printf() functions to tprintf(),
# to use LAM I/O and the master can run on any node (with the output
# again coming, by default, to the lamboot node).
#
# We specify the full pathname to the "master" executable so that it
# is sure to be found.  It may not be necessary to specify the full
# pathname in all cases; see mpirun(1) for more details.
#
h /build/buildd/lam-6.5.6/examples/mandelbrot/master

#
# Run any number of slaves, but one per CPU is the most sensible thing.
# Assuming the multicomputer is homogeneous, ship the executable
# to each node.  This is slower but more convenient than placing it there
# yourself or relying upon NFS and your shell path to be right.
#
# We specify the full pathname to slave for the same reason as above.
#
C -s h /build/buildd/lam-6.5.6/examples/mandelbrot/slave
