<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="RU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Mahdieh,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Most likely there is an issue with host name resolution.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I would recommend to use “-verbose” hydra argument for further troubleshooting.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">BR,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Dmitry<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> mahdiyeh ghazi [mailto:mahdiyeh.ghazi67@gmail.com]
<br>
<b>Sent:</b> Saturday, October 17, 2015 12:13 AM<br>
<b>To:</b> discuss@mpich.org<br>
<b>Subject:</b> Re: [mpich-discuss] MPICH symmetric mode execution on Xeon Phi<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">Thanks for your reply.</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">So I created a hydra_pmi_proxy shell script as follows:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">#!/bin/bash<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">ARCH=$(uname -m)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">if [ $ARCH == 'x86_64' ]; then<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">#host<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">./hydra_pmi_proxy.host<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">elif [ $ARCH == 'k1om' ]; then<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">#coprocessor<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">/opt/new-mpich-host/mpich-3.1.4/1/bin/hydra_pmi_proxy.mic<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">fi<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">and I run the command:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">./mpirun -f ./hosts -n 1 ./hellomic : -n 1 ./hello-host<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">in the hosts, I specified the mic0 and the host. Now I get the following error:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;color:#500050">[</span><span style="font-size:9.5pt;color:#500050"><a href="proxy:unset@aster01"><span lang="EN-US">proxy:unset@aster01</span></a></span><span lang="EN-US" style="font-size:9.5pt;color:#500050">] HYD_pmcd_pmip_get_params
 (pm/pmiserv/pmip_utils.c:701): server name not available<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;color:#500050">[</span><span style="font-size:9.5pt;color:#500050"><a href="proxy:unset@aster01"><span lang="EN-US">proxy:unset@aster01</span></a></span><span lang="EN-US" style="font-size:9.5pt;color:#500050">]
 main (pm/pmiserv/pmip.c:169): bad parameters passed to the proxy<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">[mpiexec@aster01] HYD_pmcd_pmiserv_proxy_init_cb (pm/pmiserv/pmiserv_cb.c:445): assert (!closed) failed<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">[mpiexec@aster01] HYDT_dmxu_poll_wait_for_event (tools/demux/demux_poll.c:76): callback returned error status<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">[mpiexec@aster01] HYD_pmci_wait_for_completion (pm/pmiserv/pmiserv_pmci.c:198): error waiting for event<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">[mpiexec@aster01] main (ui/mpich/mpiexec.c:344): process manager error waiting for completion<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">Please let me know if I am missing something.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">Mahdieh<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050">----------------------------------------------------------------------------------------------------------------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#500050"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#222222">Hello Mahdieh,<br>
<br>
There was a related discussion recently: link<</span><span style="font-size:9.5pt;color:#500050"><a href="http://lists.mpich.org/pipermail/discuss/2015-September/004175.html" target="_blank">http://lists.mpich.org/pipermail/discuss/2015-September/004175.html</a></span><span style="font-size:9.5pt;color:#222222">><br>
<br>
You may try similar approach if I?ve got your question in the correct way.<br>
<br>
BR,<br>
Dmitry<br>
</span><span style="font-size:9.5pt;color:#500050"><br>
<br>
-----------------------------------------------------------------------------------------------------------------</span><span style="font-size:9.5pt;color:#222222"><br>
From: mahdiyeh ghazi [mailto:</span><span style="font-size:9.5pt;color:#500050"><a href="mailto:mahdiyeh.ghazi67@gmail.com">mahdiyeh.ghazi67@gmail.com</a></span><span style="font-size:9.5pt;color:#222222">]<br>
Sent: Thursday, October 15, 2015 5:44 PM<br>
To: </span><span style="font-size:9.5pt;color:#500050"><a href="mailto:discuss@mpich.org">discuss@mpich.org</a></span><span style="font-size:9.5pt;color:#222222"><br>
Subject: [mpich-discuss] MPICH symmetric mode execution on Xeon Phi<br>
<br>
Hi,<br>
<br>
I'm trying to use MPICH to run a code in symmetric mode on Xeon Phi. First, I installed MPICH-3.1.4 with the following configuration for Xeon Phi:<br>
<br>
./configure --prefix=/opt/new-mpich/mpich-3.1.4/1 --with-device=ch3:nemesis --host=x86_64 --build=x86_64-k1om-linux  CC=icc CXX=icpc --disable-f77 --disable-fc CFLAGS=-mmic CXXFLAGS=-mmic --disable-mcast --disable-fortran LDFLAGS='-L/home/ghazim/build/aster/intel/composer_xe_2015.3.187/compiler/lib/mic/
 -Wl,-rpath,/home/ghazim/build/aster/intel/composer_xe_2015.3.187/compiler/lib/mic/'<br>
<br>
With this configuration, I could successfully run a code in native mode on Xeon Phi. In order to run the code in symmetric mode, I installed MPICH once again, this time for the host with following configuration:<br>
<br>
./configure --prefix=/opt/new-mpich-host/mpich-3.1.4/1<br>
<br>
Then I compiled the code two times, once with -mmic option to make executable for Xeon Phi (from /opt/new-mpich/mpich-3.1.4/1) and once again without -mmic option to make executable for the host (from /opt/new-mpich-host/mpich-3.1.4/1). Now, my question is
 how I can run the program with these two executable from Xeon Phi and the host.<br>
<br>
I know that MPICH supports running parallel programs with different executables with some devices like ch_p4, ch_mpl and globus2 using MPMD but I don't know how I can use this feature to run the code in symmetric mode on Xeon Phi and whether it is possible
 or not.<br>
<br>
Thanks,<br>
Mahdieh</span><span style="font-size:9.5pt;color:#500050"><o:p></o:p></span></p>
</div>
</div>
</div>
<p><br>--------------------------------------------------------------------<br>Joint Stock Company Intel A/O<br>Registered legal address: Krylatsky Hills Business Park, <br>17 Krylatskaya Str., Bldg 4, Moscow 121614, <br>Russian Federation</p><p>This e-mail and any attachments may contain confidential material for<br>the sole use of the intended recipient(s). Any review or distribution<br>by others is strictly prohibited. If you are not the intended<br>recipient, please contact the sender and delete all copies.</p>
</body>
</html>