Subject: MPI on Maui SP2

From: David Brightwell <[email-masked]>
Date: Thu, 27 Apr 1995 12:00:33 -0400 (EDT)

Dr. Motteler,
	
	Here are some steps to take in order to use MPI
on the Maui SP2. You may want to post this for the rest
of the class.

	Add /source/pd/mpi/bin to your PATH.

	Create a .rhosts file so that you can use
	multiple CPUs. One with all the SP2 nodes
	exists in:
  /source/local/etc/httpd/htdocs/training/workshop/samples/rhost

	The following Makefile can be used to compile the
	bogey.c program, and shows the paths to the includes
	and libs.

------------------

# Sample MPI Makefile from MPI Distribution
# 	modified by Dave Brightwell

ARCH        = rs6000
COMM        = euih
MPIR_HOME   = /source/pd/mpi
CC          = mpcc
#
INCLUDE_DIR =  -I$(MPIR_HOME)/include 
MPILIB_DIR  =  -L$(MPIR_HOME)/lib/$(ARCH)/$(COMM)

MPILIB = -lmpi 

OBJECTS = bogey.o
EXEC = bogey

all: $(EXEC)

$(EXEC):$(OBJECTS)
	$(CC) -o$(EXEC) $(OBJECTS) $(MPILIB_DIR) $(MPILIB)

.c.o:
	$(CC) -c $(CFLAGS) $(INCLUDE_DIR) -o $@ $<

clean: 
	rm $(OBJECTS) $(EXEC)