Home > Help Files > Software Applications > MPICH v1

MPICH v1


Description:

MPICH v1 is a freely available, portable implementation of MPI (Message-Passing Interface), the Standard for message-passing libraries.

Version

MPICH v1.2.7 PGI

Installed on

Linux cluster

Environment

By default, these lines are executed when you log into any cluster:
source /usr/local/profile.d/mpich1-pgi.tcsh
source /usr/local/profile.d/pgivars.tcsh

For bash,sh shell, type
source /usr/local/profile.d/mpich1-pgi.sh
source /usr/local/profile.d/pgivars.sh

Executables

mpirun, mpicc, mpiCC, mpif90 and mpif77

Usage

  1. Compile your MPICH 1 code. You must use PGI compilers
        pgcc -o outfile input.c -Mmpi
        pgf77 -o outfile input.f -Mmpi
    
    Read the PGI User Manual for more info on MPI compile options.
  2. Set up SSH
    1. ssh to kepler.berkeley.edu
    2. cd ~/.ssh2
    3. ssh-keygen kepler
      You will be prompted for a passphrase. Choose you passphrase carefully! Do not re-use your password. It defeats the purpose. Two files will be created:
         ~/.ssh2/kepler      Your private key.
         ~/.ssh2/kepler.pub  Your public key.  Can be shared.  
    4. pico ~/.ssh2/identification and put in the following
      IdKey kepler
    5. pico ~/.ssh2/authorization and put in the following
      Key kepler.pub
  3. Running MPICH 1:
    Start ssh-agent by issuing: ssh-agent /bin/tcsh
    Add your key to the agent: ssh-add
    You'll be prompted for your passphrase.
    
    then
    
    mpirun -np 2 /usr/local/pgi/bench/mpihello/mpihello
    
    or 
    
    mpirun -np 2 -machinefile filename /usr/local/pgi/bench/mpihello/mpihello
    
    

Documentation

MPICH 1 Docs PGI Users Guide

 


Comments to consult@newton.berkeley.edu
© 1998-2009 UC Regents