From dsbrigh@cs.umbc.edu  Thu Apr 27 12:00:42 1995
Return-Path: dsbrigh@cs.umbc.edu
Received: from umbc4.umbc.edu (root@umbc4.umbc.edu [130.85.1.4]) by umbc7.umbc.edu (8.6.10/8.6.9) with ESMTP id MAA18009 for <motteler@umbc7.umbc.edu>; Thu, 27 Apr 1995 12:00:41 -0400
Received: from algol.cs.umbc.edu (algol.cs.umbc.edu [130.85.100.2]) by umbc4.umbc.edu (8.6.10/8.6.9) with ESMTP id MAA25049 for <motteler@umbc.edu>; Thu, 27 Apr 1995 12:00:40 -0400
Received: from deputy.cs.umbc.edu (dsbrigh@deputy.cs.umbc.edu [130.85.100.57]) by algol.cs.umbc.edu (8.6.12/8.6.9) with ESMTP id MAA10702; Thu, 27 Apr 1995 12:00:47 -0400
From: David Brightwell <dsbrigh@cs.umbc.edu>
Received: (dsbrigh@localhost) by deputy.cs.umbc.edu (8.6.10/8.6.9) id MAA09035; Thu, 27 Apr 1995 12:00:34 -0400
Message-Id: <199504271600.MAA09035@deputy.cs.umbc.edu>
Subject: MPI on Maui SP2
To: motteler@cs.umbc.edu (Howard E. Motteler)
Date: Thu, 27 Apr 1995 12:00:33 -0400 (EDT)
Cc: dsbrigh@cs.umbc.edu (David Brightwell; Masters)
X-Mailer: ELM [version 2.4 PL22]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length:        950
Status: RO


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)

