Path: news.mathworks.com!not-for-mail
From: Edric M Ellis <eellis@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: using new mpich2 library problems
Date: Wed, 11 Nov 2009 08:23:20 +0000
Organization: The Mathworks, Ltd.
Lines: 40
Message-ID: <ytwiqdhcvwn.fsf@uk-eellis-deb5-64.mathworks.co.uk>
References: <hd1uqu$b37$1@fred.mathworks.com> <ytwskcodq8m.fsf@uk-eellis-deb5-64.mathworks.co.uk> <hdcm1s$qj9$1@fred.mathworks.com>
NNTP-Posting-Host: uk-eellis-deb5-64.mathworks.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: fred.mathworks.com 1257927800 27210 172.16.27.232 (11 Nov 2009 08:23:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 11 Nov 2009 08:23:20 +0000 (UTC)
X-Face: $Ahg}Iylezql"r1WV1Me5&)ng"a4v%D>==KMs-elCfj"o}$bh-VOt7lVXgLWsC?9mZ`mINT
 G6PDvca;nrgs$lfcr0l1ew'N]>nXKl}m|Zpg>,6*gLp~-N0N2*+b.iwv=u>@R$L4SEG&NYUU;lSR@u
 IHphdAy
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:Lypiuq601Qb/pv/I2hhlwEQN3yE=
Xref: news.mathworks.com comp.soft-sys.matlab:584095


"Brock " <brockp@umich.edu> writes:

> When I do:
> matlabpool open native-mpiexec 4
> It says:
> Starting matlabpool using the 'native-mpiexec' configuration ... connected to 1 labs.
>
> Which is odd,  

That's probably to do with the mismatch between the MPICH library you're picking
up and the mpiexec you're using. Typically, if something goes wrong there, each
worker process ends up thinking it's got labindex==1.

>>> spmd
> which mpiLibConf
> [a,b]=mpiLibConf
> end
>   1 /nobackup/brockp/matlab/mpiLibConf.m
>     a =
>     /nobackup/brockp/matlab/mpich/lib/libmpich.so
>     b = 
>          {}
>

> [...]
>> How did you add the path to your updated mpiLibConf to MATLAB's path?
>
> export MATLABPATH=/nobackup/brockp/matlab:$MATLABPATH
>

Hmm, it does appear that the mpiLibConf.m being picked up by the workers is OK
when you've checked it there. But thinking about it, the worker path gets
modified after pool startup, so it may well not reflect the value that was
used. I'm not 100% sure if your workers will see the changes you've made via
setting the environment variable. Any chance you could try putting mpiLibConf.m
into ~/matlab ? 

Cheers,

Edric.