<div dir="ltr">It's working and the causes lie with incomplete environment configuration:<div><br></div><div>1. a hostname must be configured in /etc/rc.conf, then execute 'hostname' to set it immediately</div><div>2. ktrace shows the file ~/.mpd.conf must exist. I copied this from /usr/local/etc/mpd.conf</div><div>3. this file needs permissions 600</div><div>4. command mpd must be run in another terminal</div><div><br></div><div>I had not set a host name because I use this as a kernel hacking system, but 2-4 were specific to MPICH.</div><div><br></div><div>Refer to I.8 and I.9 in this document</div><div><br></div><div><a href="http://www.mpich.org/static/downloads/1.2.1p1/mpich2-1.2.1p1-README.txt">http://www.mpich.org/static/downloads/1.2.1p1/mpich2-1.2.1p1-README.txt</a></div><div><br></div><div>Upon installation of mpich I am only urged to change the password in /usr/local/etc/mpd.conf.</div><div><br></div><div>-Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 22, 2015 at 5:02 PM, Alex Merritt <span dir="ltr"><<a href="mailto:merritt.alex@gmail.com" target="_blank">merritt.alex@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>Has anyone successfully been able to execute an MPI program? I have tried with both mpich and mpich2 from the pkg library on DF 4.0.6:</div><div><br></div><div>// mpicc mpitest.c -o mpitest</div><div><div>#include <mpi.h></div><div>int main(int narg, char **arg) {</div><div>        int me,nprocs;</div><div>        MPI_Init(&narg,&arg);</div><div>        MPI_Comm_rank(MPI_COMM_WORLD,&me);</div><div>        MPI_Comm_size(MPI_COMM_WORLD,&nprocs);</div><div>        MPI_Finalize();</div><div>        return 0;</div><div>}</div></div><div><br></div><div>With mpich2 1.5_2,5</div><div><br></div><div><div>% ./mpitest</div><div>Fatal error in MPI_Init: Other MPI error, error stack:</div><div>MPIR_Init_thread(420)..............:</div><div>MPID_Init(180).....................: channel initialization failed</div><div>MPIDI_CH3_Init(38).................:</div><div>MPID_nem_init(244).................:</div><div>MPID_nem_tcp_init(108).............:</div><div>MPID_nem_tcp_get_business_card(354):</div><div>MPID_nem_tcp_init(288).............:</div><div>MPID_Get_processor_name(33)........: Failed to get processor name</div></div><div><br></div><div><div>% mpirun -np 1 ./mpitest</div><div>mpiexec failed: gethostbyname_ex failed for</div></div><div><br></div><div>With mpich 3.1.4_1</div><div><br></div><div><div>% ./mpitest</div><div>Fatal error in MPI_Init: Other MPI error, error stack:</div><div>MPIR_Init_thread(498)..............:</div><div>MPID_Init(187).....................: channel initialization failed</div><div>MPIDI_CH3_Init(89).................:</div><div>MPID_nem_init(320).................:</div><div>MPID_nem_tcp_init(171).............:</div><div>MPID_nem_tcp_get_business_card(418):</div><div>MPID_nem_tcp_init(352).............:</div><div>MPID_Get_processor_name(33)........: Failed to get processor name</div></div><div><br></div><div><div>% mpirun -np 1 ./mpitest</div><div>[mpiexec@] HYD_pmcd_pmiserv_proxy_init_cb (pm/pmiserv/pmiserv_cb.c:445): assert (!closed) failed</div><div>[mpiexec@] HYDT_dmxu_poll_wait_for_event (tools/demux/demux_poll.c:76): callback returned error status</div><div>[mpiexec@] HYD_pmci_wait_for_completion (pm/pmiserv/pmiserv_pmci.c:198): error waiting for event</div><div>[mpiexec@] main (ui/mpich/mpiexec.c:344): process manager error waiting for completion</div></div><div><br></div><div><br></div><div>Thanks,</div><div>Alex</div></div>
</blockquote></div><br></div>