From: Maciej Golebiewski <s30125@hotbot.com>
Newsgroups: comp.parallel.mpi
Subject: Re: Building MPICH on SMP: ch_shmem or ch_p4 (?)
Date: Thu, 06 May 1999 10:11:13 +0200
Organization: Organization? Me???
Message-Id: <37314EA1.F1CFD3D5@hotbot.com>
References: <7g9jq9$trq$1@vvv.srcc.msu.su> <37285C51.71E7C9CF@hotbot.com>
    <7gphqb$fja$1@nnrp1.dejanews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: ukc comp.parallel.mpi:5033


Hi,

I did not make install because currently I'm using MPICH from my
account. You get the error message because make tried to install
mpirun for ch_lfshmem but there ain't one because ch_lfshmem does
not need that: you start just one process by hand and then it
forks n-1 child processes. You may use mpich without making install,
just from the directory where you compiled. Another possibility is
to modify the install procedure for ch_lfshmem so that it's not
looking for mpirun in that case. Or try the simple and dirty
hack: create fake mpirun.ch_lfshmem.in in mpich/util to cheat on
install. :)

I believe that the remarks on ch_lfshmem apply to using it on some
"big iron" with specific memory models, as for example NEC SX-4
parallel vector supercomputer which is not cache-coherent. PCs with
Intel CPUs are cache coherent so ch_lfshmem on such a computer should
work out of the box.

Cheers,

Maciej

matt@mail.ssc.usm.edu wrote:
> 
> I tried to compile mpich 1.1.2 with lfshmem on my linux station and I get the
> following error
> {tweety.tlsavi 142} make install
> ./util/mpiinstall -prefix=/home/matt
> sed: can't read util/mpirun.ch_lfshmem.in: No such file or directory
> **Error fixing up file /home/matt/bin/mpirun.ch_lfshmem**
> make: *** [install] Error 2
> 
> This bothered me because if you read the knownbugs file you see that
> ch_lfshmem:
> 
> 1. The "lock free shared memory" device requires very specific memory ordering
> or operations; this usually requires either adding assembly language
> instructions (e.g., a write sync) or special compiler options.  You can't just
> configure/make this device, alas.
> 
> Here is how it is configured
>  ./configure --prefix=/home/matt -opt="-O3 -funroll-loops -mcpu=i686"
> -nodevdebug -cc=egcs -c++=g++ -device=ch_lfshmem
> 
> How did you get it to work??
> Thanks in advance
> Matt

