Differences between revisions 3 and 10 (spanning 7 versions)
Revision 3 as of 2011-05-06 09:10:17
Size: 1332
Editor: NicoleThomas
Comment:
Revision 10 as of 2013-11-08 09:40:44
Size: 1898
Editor: NicoleThomas
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#acl ClamsUserGroup:read,write,delete,revert All:read

Line 2: Line 5:
= HowToParallel = <<TableOfContents>>
= ParallelHowTo =
Line 35: Line 39:
ssh-add > ssh-agent
> SSH_AUTH_SOCK=/tmp/ssh-arHtY17224/agent.17224; export SSH_AUTH_SOCK;
> SSH_AGENT_PID=17225; export SSH_AGENT_PID;
> echo Agent pid 17225;
> ssh-add .ssh/id_rsa
Line 43: Line 51:
mpirun -np # program mpirun -np # [ --all-local ] program
Line 46: Line 54:
use the option --all-local for running it on the CPUs of the local machine only.
Line 56: Line 64:
PATH=/usr/local/icg/icg1/local/mpich2-intel/bin:$PATH PATH=/usr/nfs/local/local/mpich2-intel/bin:$PATH
Line 58: Line 66:
}}}

To read the man pages set MANPATH to the following:
{{{
MANPATH=/usr/nfs/local/local/mpich2-intel/share/man:$MANPATH
export MANPATH
Line 67: Line 81:
mpirun -np <n> <progname> mpiexec -np <n> <progname>
Line 69: Line 83:

It may be necessary to unset the memory limit:
{{{
ulimit -s unlimited
}}}

ParallelHowTo

Portland Compiler

It is possible to run CLaMS on multi-processor machines using MPI or OpenMP.

On the Ubuntu machines the PGF compiler suite is installed that has MPICH implemented.

In the following a short How to:

First it is necessary to make the path of the MPI libraries public by executing:

for 64bit machines:

. /opt/pgi/linux86-64/10.4/mpi.sh

for 32bit machines:

. /opt/pgi/linux86/10.4/mpi.sh

Then compile the needed programs by executing:

make useMPI=true

Before running the CLaMS script or a single program you have to execute:

> ssh-agent
> SSH_AUTH_SOCK=/tmp/ssh-arHtY17224/agent.17224; export SSH_AUTH_SOCK;
> SSH_AGENT_PID=17225; export SSH_AGENT_PID;
> echo Agent pid 17225;
> ssh-add .ssh/id_rsa

This is necessary, because the processes communicate per ssh.

The programs must be called as following:

mpirun -np # [ --all-local ] program

# - number of processors
use the option --all-local for running it on the CPUs of the local machine only.

Intel Compiler

The MPICH2 Library (1.3.2p1) is installed in directory /usr/local/icg/icg1/local/mpich2-intel (for Intel C and Fortran compilers).

Add the bin subdirectory of the installation directory to your path:

PATH=/usr/nfs/local/local/mpich2-intel/bin:$PATH
export PATH

To read the man pages set MANPATH to the following:

MANPATH=/usr/nfs/local/local/mpich2-intel/share/man:$MANPATH
export MANPATH

The programs can be compiled with:

make useComp=ifc useMPI=true <progname>

Execute on <n> CPUs:

mpiexec -np <n> <progname>

It may be necessary to unset the memory limit:

ulimit -s unlimited