[RegCNET] Running RegCM3 parallel in Quadcore processor using Fedora 11

Roxana Bojariu bojariu at meteoromania.ro
Thu Nov 5 10:33:52 CET 2009


Hello Akhmad,
If you have already installed mpich2 on your computer and want to run
in parallel mode the RegCM code then you could follow the following
procedure.

1.compile the RegCM code in parallel mode
       a) number of processors > 0 in domain.param (in your case 4)
       b)make sure MAKECODE  (in Main directory) is in parallel mode,
if not, use in Main directory:
         “ln -s 0options/0_NODIAG_PARALLEL_CODE MAKECODE”
       c) compile the code and build your "regcm" binary using a
special Makefile (see below)

2.start your “mpd”:  “mpd &”
(make sure you have in your home directory a file named “.mpd.conf”;
this file should be “chmode 600” and it should contain only one line
looking like “MPD_SECRETWORD=<your_own_secret_word>”

3.submit your binary compiled using parallel code ("regcm"):
“<your_mpich2_directory_path>/bin/mpiexec -np 4
<your_run_directory_path>/regcm< <your_run_directory_path> /regcm.in >
<your_run_directory_path>outrun_text “

4.verify with “top” command the status of your processes in the parallel run

The “Makefile” in Main  directory should have these lines:
=========================================
FFLAGS =  -O1 -Ktrap=fp -byteswapio
MPI_ROOT = <your_mpich2_directory_path>

FC = $(MPI_ROOT)/bin/mpif90 -L/usr/gm/lib
CC = $(MPI_ROOT)/bin/mpicc
LIBS = -lm

LDFLAG=-Bdynamic
LD = $(FC)

SRC = \
aermix.f  [...]

OBJ = \
aermix.o [...]

all: regcm

regcm:	$(OBJ)
	$(LD) -o $@ $(FFLAGS) $(OBJ) $(LDFLAG)

clean:
	rm -f $(OBJ) regcm *.o

Good luck!

Roxana Bojariu
National Meteorological Administration
Sos. Bucuresti-Ploiesti 97
013686 Bucharest, Romania
http://roxana.ciberplai.net
http://www.meteoromania.ro


More information about the RegCNET mailing list