<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265200</link>
    <title>MATLAB Central Newsreader - using new mpich2 library problems</title>
    <description>Feed for thread: using new mpich2 library problems</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 06 Nov 2009 19:53:02 -0500</pubDate>
      <title>using new mpich2 library problems</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265200#692764</link>
      <author>Brock </author>
      <description>Hello, &lt;br&gt;
We are trying to have matlab use a build of mpich2 that does not use smpd so we may use OSU's mpiexec in our PBS batch environment.  &lt;br&gt;
&lt;br&gt;
I built version 1.0.8p1  of mpich2 to match 1.0.x that comes with 2009a, I then made mpiLibConf.m  to point to '/nobackup/brockp/matlab/mpich/lib/libmpich.so',  and added its location to MATLABPATH,&lt;br&gt;
&lt;br&gt;
I then made a configuration using the mpiexec type, and put in the custom mpiexec location, and argument --comm mpich2-pmi,&lt;br&gt;
&lt;br&gt;
Problem is no matter what when I run &lt;br&gt;
matlabpool open configname 4&lt;br&gt;
&lt;br&gt;
The library that is dlopened()'  is the one that comes with matlab (lsof | grep mpich), not my new one.&lt;br&gt;
I am confused what needs to be done, or if there is anyway to make matlab give me more information about how it is picking what libmpich.so to load.&lt;br&gt;
&lt;br&gt;
Any input would be helpful, </description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 09:03:37 -0500</pubDate>
      <title>Re: using new mpich2 library problems</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265200#693157</link>
      <author>Edric M Ellis</author>
      <description>&quot;Brock &quot; &amp;lt;brockp@umich.edu&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt; Hello, We are trying to have matlab use a build of mpich2 that does not use&lt;br&gt;
&amp;gt; smpd so we may use OSU's mpiexec in our PBS batch environment.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I built version 1.0.8p1 of mpich2 to match 1.0.x that comes with 2009a, I then&lt;br&gt;
&amp;gt; made mpiLibConf.m to point to '/nobackup/brockp/matlab/mpich/lib/libmpich.so',&lt;br&gt;
&amp;gt; and added its location to MATLABPATH,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I then made a configuration using the mpiexec type, and put in the custom&lt;br&gt;
&amp;gt; mpiexec location, and argument --comm mpich2-pmi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Problem is no matter what when I run matlabpool open configname 4&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The library that is dlopened()' is the one that comes with matlab (lsof | grep&lt;br&gt;
&amp;gt; mpich), not my new one.  I am confused what needs to be done, or if there is&lt;br&gt;
&amp;gt; anyway to make matlab give me more information about how it is picking what&lt;br&gt;
&amp;gt; libmpich.so to load.&lt;br&gt;
&lt;br&gt;
Once you've run &quot;matlabpool open ...&quot;, what happens when you run &lt;br&gt;
&lt;br&gt;
spmd&lt;br&gt;
&amp;nbsp;&amp;nbsp;which mpiLibConf&lt;br&gt;
&amp;nbsp;&amp;nbsp;[a, b] = mpiLibConf&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
? &lt;br&gt;
&lt;br&gt;
How did you add the path to your updated mpiLibConf to MATLAB's path?&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
&lt;br&gt;
Edric.</description>
    </item>
    <item>
      <pubDate>Tue, 10 Nov 2009 21:30:36 -0500</pubDate>
      <title>Re: using new mpich2 library problems</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265200#693639</link>
      <author>Brock </author>
      <description>&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Once you've run &quot;matlabpool open ...&quot;, what happens when you run &lt;br&gt;
When I do:&lt;br&gt;
matlabpool open native-mpiexec 4&lt;br&gt;
It says:&lt;br&gt;
Starting matlabpool using the 'native-mpiexec' configuration ... connected to 1 labs.&lt;br&gt;
&lt;br&gt;
Which is odd,  &lt;br&gt;
ps aux | grep mpiexec&lt;br&gt;
/home/software/rhel5/mpiexec/0.83/bin/mpiexec --comm mpich2 -n 4 worker -parallel&lt;br&gt;
&lt;br&gt;
Which is right, but:&lt;br&gt;
lsof | grep mpich&lt;br&gt;
MATLAB    31757    brockp  mem       REG               0,26   1353360  404096010 /afs/engin.umich.edu/caen/rhel_5/matlab-2009a/bin/glnxa64/libmpich.so&lt;br&gt;
&lt;br&gt;
whcih mpiLibConf&lt;br&gt;
/nobackup/brockp/matlab/mpiLibConf.m&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; spmd&lt;br&gt;
which mpiLibConf&lt;br&gt;
[a,b]=mpiLibConf&lt;br&gt;
end&lt;br&gt;
&amp;nbsp;&amp;nbsp;1 /nobackup/brockp/matlab/mpiLibConf.m&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;a =&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/nobackup/brockp/matlab/mpich/lib/libmpich.so&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;b = &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{}&lt;br&gt;
&lt;br&gt;
spmd&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; spmd&lt;br&gt;
&amp;gt;   which mpiLibConf&lt;br&gt;
&amp;gt;   [a, b] = mpiLibConf&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; How did you add the path to your updated mpiLibConf to MATLAB's path?&lt;br&gt;
&lt;br&gt;
export MATLABPATH=/nobackup/brockp/matlab:$MATLABPATH&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Cheers,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Edric.</description>
    </item>
    <item>
      <pubDate>Wed, 11 Nov 2009 08:23:20 -0500</pubDate>
      <title>Re: using new mpich2 library problems</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265200#693753</link>
      <author>Edric M Ellis</author>
      <description>&quot;Brock &quot; &amp;lt;brockp@umich.edu&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt; When I do:&lt;br&gt;
&amp;gt; matlabpool open native-mpiexec 4&lt;br&gt;
&amp;gt; It says:&lt;br&gt;
&amp;gt; Starting matlabpool using the 'native-mpiexec' configuration ... connected to 1 labs.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Which is odd,  &lt;br&gt;
&lt;br&gt;
That's probably to do with the mismatch between the MPICH library you're picking&lt;br&gt;
up and the mpiexec you're using. Typically, if something goes wrong there, each&lt;br&gt;
worker process ends up thinking it's got labindex==1.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; spmd&lt;br&gt;
&amp;gt; which mpiLibConf&lt;br&gt;
&amp;gt; [a,b]=mpiLibConf&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;   1 /nobackup/brockp/matlab/mpiLibConf.m&lt;br&gt;
&amp;gt;     a =&lt;br&gt;
&amp;gt;     /nobackup/brockp/matlab/mpich/lib/libmpich.so&lt;br&gt;
&amp;gt;     b = &lt;br&gt;
&amp;gt;          {}&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;gt; [...]&lt;br&gt;
&amp;gt;&amp;gt; How did you add the path to your updated mpiLibConf to MATLAB's path?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; export MATLABPATH=/nobackup/brockp/matlab:$MATLABPATH&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Hmm, it does appear that the mpiLibConf.m being picked up by the workers is OK&lt;br&gt;
when you've checked it there. But thinking about it, the worker path gets&lt;br&gt;
modified after pool startup, so it may well not reflect the value that was&lt;br&gt;
used. I'm not 100% sure if your workers will see the changes you've made via&lt;br&gt;
setting the environment variable. Any chance you could try putting mpiLibConf.m&lt;br&gt;
into ~/matlab ? &lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
&lt;br&gt;
Edric.</description>
    </item>
    <item>
      <pubDate>Wed, 11 Nov 2009 16:14:06 -0500</pubDate>
      <title>Re: using new mpich2 library problems</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265200#693919</link>
      <author>Brock </author>
      <description>&amp;gt; &lt;br&gt;
&amp;gt; Hmm, it does appear that the mpiLibConf.m being picked up by the workers is OK&lt;br&gt;
&amp;gt; when you've checked it there. But thinking about it, the worker path gets&lt;br&gt;
&amp;gt; modified after pool startup, so it may well not reflect the value that was&lt;br&gt;
&amp;gt; used. I'm not 100% sure if your workers will see the changes you've made via&lt;br&gt;
&amp;gt; setting the environment variable. Any chance you could try putting mpiLibConf.m&lt;br&gt;
&amp;gt; into ~/matlab ? &lt;br&gt;
&lt;br&gt;
That did it, things work correctly now, and torque starts matlab workers on the correct remote nodes, under the TM job manager, so nolonger use ssh, startup and shutdown is much cleaner and faster!  Also nolonger have to leave a matlab running on a login node, which was the real goal.&lt;br&gt;
&lt;br&gt;
Thank you!&lt;br&gt;
Maybe make a note some place in the docs on mpiLibConf ?&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Cheers,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Edric.</description>
    </item>
  </channel>
</rss>

