[MITgcm-devel] [Fwd: Re: mpi on dolphin -- corrected]
Ed Hill
ed at eh3.com
Sun Mar 14 12:16:44 EST 2004
Hi Chris,
Please ignore the email I sent yesterday. After a few (silly) mistakes,
I managed to get both mpich and MITgcm running on Tom Haine's Opteron
cluster. Below are my notes.
Would it be OK to include mpich/MITgcm notes in the MITgcm manual (maybe
as an appendix?) or is it more appropriate content for the "developer's
HOWTO"?
Ed
-----Forwarded Message-----
> From: Ed Hill <ed at eh3.com>
> To: Tom Haine <Thomas.Haine at jhu.edu>
> Subject: Re: mpi on dolphin -- corrected
> Date: Sun, 14 Mar 2004 00:46:45 -0500
>
>
> Hi Tom,
>
> I was too hasty when I sent the earlier email. The problem that we both
> ran into was the missing genmake2 "-mpi" option. Its needed since it
> defines ALLOW_USE_MPI and ALWAYS_USE_MPI which were previously defined
> within CPP_EEOPTIONS.h.
>
> In any case, the commands used were:
>
> 1) get/install mpich:
>
> wget http://www-unix.mcs.anl.gov/mpi/mpich/downloads/mpich.tar.gz
> tar -xzf mpich.tar.gz
> cd mpich-1.2.5.2/
> export RSHCOMMAND=/usr/bin/ssh
> ./configure -prefix=/home/ehill/mpich
> make
> make install
> cp /usr/local/mpich-1.2.5/share/machines.LINUX \
> /home/ehill/mpich/share/machines.LINUX
>
> 2) get and build MITgcm:
>
> export CVSROOT=':pserver:cvsanon at mitgcm.org:/u/gcmpack'
> cvs login
> <== "cvsanon"
> cvs co MITgcm
> cd MITgcm/verification/global_ocean.cs32x15/build
> *** NOTE: PLEASE SEE ATTACHED OPTFILE "linux_amd64_g77+mpi" ***
> cp ~/linux_amd64_g77+mpi .
> mv ../code/SIZE.h_mpi ../code/SIZE.h
> ../../../tools/genmake2 -mpi -ieee -of=./linux_amd64_g77+mpi \
> -mods=../code
> make depend
> make
>
> 3) run MITgcm:
>
> MITgcm/verification/global_ocean.cs32x15/input
> ln -s ../build/mitgcmuv .
> /home/ehill/mpich/bin/mpirun -nolocal -np 2 ./mitgcmuv
>
>
> and you can see the results that were produced in:
>
> /home/ehill/MITgcm/verification/global_ocean.cs32x15/input
>
>
> I hope this example demonstrates all the steps. Please send me an email
> if you have any more questions about MITgcm and/or MPI.
>
> Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Room 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
email: eh3 at mit.edu, ed at eh3.com
URL: http://web.mit.edu/eh3/
phone: 617-253-0098
fax: 617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mitgcm.org/pipermail/mitgcm-devel/attachments/20040314/745be0d6/attachment.sig>
More information about the MITgcm-devel
mailing list