GA demo

From: E. Vesperini <vesperin@einstein.physics.drexel.edu>
Date: Wed Feb 02 2005 - 15:55:16 EST

Hi everybody

here is some info about how to install the GA toolkit and run the simple
demo I wrote.

1) You can copy the GA toolkit from the directory /home/vesperin/tempga/
on frinkiac1.

global3-3-1.tgz

2) After tar -xvzf, everything will be in the directory g.

3) There is no autoconf, so when you compile it you have to set a
few flags. I have compiled it with the following command

gmake TARGET=LINUX USE_MPI=yes MPI_INLCUDE=''/usr/include,/usr/local/mpich124_gnu/include'' MPI_LIB=''/usr/lib,/usr/local/mpich124_gnu/lib'' LIBMPI=-lmpich FC=mpif77 CC=mpicc

4) You can then copy the file testmpi3.c (this is my simple demo code) and the
files file0.txt,file1.txt,file2.txt,file3.txt
from the tempga directory on frinkiac1 and put all of them in your directory

g/global/testing

Compile it this way

mpicc -I../../include -DLINUX -O2 -funroll-loops -malign-double -c -o testmpi3.o testmpi3.c
mpicc -I../../include -DLINUX -O2 -funroll-loops -malign-double -c -o util.o util.c
mpif77 -c -O2 -funroll-loops -fomit-frame-pointer -malign-double -fno-second-underscore -Wno-globals -I../../include -DLINUX ffflush.F
mpif77 -g -funroll-loops -fomit-frame-pointer -malign-double -fno-second-underscore -Wno-globals -o testmpi3.x testmpi3.o util.o -L../../lib/LINUX -lglobal -lma -llinalg -larmci -ltcgmsg-mpi -lmpich -lm -lm

5) To run it

mpirun -p4pg pf4 ./testmpi3.x

and the file pf4 contains the following lines

frinkiac1 0 /home/vesperin/g/global/testing/testmpi3.x
frinkiac1 1 /home/vesperin/g/global/testing/testmpi3.x
frinkiac2 1 /home/vesperin/g/global/testing/testmpi3.x
frinkiac2 1 /home/vesperin/g/global/testing/testmpi3.x

(make sure you can ssh frinkiac2 without being asked the password)

I wrote a few comments in testmpi3.c but let me know if you have any
question.

Enrico
Received on Wed Feb 2 15:55:16 2005

This archive was generated by hypermail 2.1.8 : Fri Aug 08 2008 - 19:25:03 EDT