<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><span style="color:rgb(80,0,80);font-size:12.8px">Thanks for your reply.</span><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">So I created a hydra_pmi_proxy shell script as follows:</div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px"><div>#!/bin/bash</div><div><br></div><div>ARCH=$(uname -m)</div><div><br></div><div>if [ $ARCH == 'x86_64' ]; then</div><div>#host</div><div>./hydra_pmi_proxy.host</div><div>elif [ $ARCH == 'k1om' ]; then</div><div>#coprocessor</div><div>/opt/new-mpich-host/mpich-3.1.4/1/bin/hydra_pmi_proxy.mic</div><div>fi</div></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">and I run the command:</div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">./mpirun -f ./hosts -n 1 ./hellomic : -n 1 ./hello-host<br></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">in the hosts, I specified the mic0 and the host. Now I get the following error:</div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">[proxy:unset@aster01] HYD_pmcd_pmip_get_params (pm/pmiserv/pmip_utils.c:701): server name not available</div><div style="color:rgb(80,0,80);font-size:12.8px">[proxy:unset@aster01] main (pm/pmiserv/pmip.c:169): bad parameters passed to the proxy</div><div style="color:rgb(80,0,80);font-size:12.8px">[mpiexec@aster01] HYD_pmcd_pmiserv_proxy_init_cb (pm/pmiserv/pmiserv_cb.c:445): assert (!closed) failed</div><div style="color:rgb(80,0,80);font-size:12.8px">[mpiexec@aster01] HYDT_dmxu_poll_wait_for_event (tools/demux/demux_poll.c:76): callback returned error status</div><div style="color:rgb(80,0,80);font-size:12.8px">[mpiexec@aster01] HYD_pmci_wait_for_completion (pm/pmiserv/pmiserv_pmci.c:198): error waiting for event</div><div style="color:rgb(80,0,80);font-size:12.8px">[mpiexec@aster01] main (ui/mpich/mpiexec.c:344): process manager error waiting for completion</div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">Please let me know if I am missing something.</div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">Thanks,</div><div style="color:rgb(80,0,80);font-size:12.8px">Mahdieh</div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">----------------------------------------------------------------------------------------------------------------</div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">Hello Mahdieh,</span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">There was a related discussion recently: link<</span><a href="http://lists.mpich.org/pipermail/discuss/2015-September/004175.html" rel="noreferrer" target="_blank" style="font-size:12.8px">http://lists.mpich.org/pipermail/discuss/2015-September/004175.html</a><span style="color:rgb(34,34,34);font-size:12.8px">></span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">You may try similar approach if I?ve got your question in the correct way.</span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">BR,</span><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">Dmitry</span><br style="color:rgb(34,34,34);font-size:12.8px"><br><br>-----------------------------------------------------------------------------------------------------------------<br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">From: mahdiyeh ghazi [mailto:</span><a href="mailto:mahdiyeh.ghazi67@gmail.com" style="font-size:12.8px">mahdiyeh.ghazi67@gmail.com</a><span style="color:rgb(34,34,34);font-size:12.8px">]</span><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">Sent: Thursday, October 15, 2015 5:44 PM</span><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">To: </span><a href="mailto:discuss@mpich.org" style="font-size:12.8px">discuss@mpich.org</a><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">Subject: [mpich-discuss] MPICH symmetric mode execution on Xeon Phi</span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">Hi,</span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">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:</span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">./configure --prefix=/opt/new-mpich/mpich-</span><span style="color:rgb(34,34,34);font-size:12.8px">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/</span><span style="color:rgb(34,34,34);font-size:12.8px">aster/intel/composer_xe_2015.</span><span style="color:rgb(34,34,34);font-size:12.8px">3.187/compiler/lib/mic/ -Wl,-rpath,/home/ghazim/build/</span><span style="color:rgb(34,34,34);font-size:12.8px">aster/intel/composer_xe_2015.</span><span style="color:rgb(34,34,34);font-size:12.8px">3.187/compiler/lib/mic/'</span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">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:</span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">./configure --prefix=/opt/new-mpich-host/</span><span style="color:rgb(34,34,34);font-size:12.8px">mpich-3.1.4/1</span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">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.</span><span style="color:rgb(34,34,34);font-size:12.8px">4/1). Now, my question is how I can run the program with these two executable from Xeon Phi and the host.</span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">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.</span><br style="color:rgb(34,34,34);font-size:12.8px"><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">Thanks,</span><br style="color:rgb(34,34,34);font-size:12.8px"><span style="color:rgb(34,34,34);font-size:12.8px">Mahdieh</span><br></div></div>