MPI
Alex Merritt
merritt.alex at gmail.com
Wed Jul 22 17:39:38 PDT 2015
It's working and the causes lie with incomplete environment configuration:
1. a hostname must be configured in /etc/rc.conf, then execute 'hostname'
to set it immediately
2. ktrace shows the file ~/.mpd.conf must exist. I copied this from
/usr/local/etc/mpd.conf
3. this file needs permissions 600
4. command mpd must be run in another terminal
I had not set a host name because I use this as a kernel hacking system,
but 2-4 were specific to MPICH.
Refer to I.8 and I.9 in this document
http://www.mpich.org/static/downloads/1.2.1p1/mpich2-1.2.1p1-README.txt
Upon installation of mpich I am only urged to change the password in
/usr/local/etc/mpd.conf.
-Alex
On Wed, Jul 22, 2015 at 5:02 PM, Alex Merritt <merritt.alex at gmail.com>
wrote:
> Hello,
>
> 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:
>
> // mpicc mpitest.c -o mpitest
> #include <mpi.h>
> int main(int narg, char **arg) {
> int me,nprocs;
> MPI_Init(&narg,&arg);
> MPI_Comm_rank(MPI_COMM_WORLD,&me);
> MPI_Comm_size(MPI_COMM_WORLD,&nprocs);
> MPI_Finalize();
> return 0;
> }
>
> With mpich2 1.5_2,5
>
> % ./mpitest
> Fatal error in MPI_Init: Other MPI error, error stack:
> MPIR_Init_thread(420)..............:
> MPID_Init(180).....................: channel initialization failed
> MPIDI_CH3_Init(38).................:
> MPID_nem_init(244).................:
> MPID_nem_tcp_init(108).............:
> MPID_nem_tcp_get_business_card(354):
> MPID_nem_tcp_init(288).............:
> MPID_Get_processor_name(33)........: Failed to get processor name
>
> % mpirun -np 1 ./mpitest
> mpiexec failed: gethostbyname_ex failed for
>
> With mpich 3.1.4_1
>
> % ./mpitest
> Fatal error in MPI_Init: Other MPI error, error stack:
> MPIR_Init_thread(498)..............:
> MPID_Init(187).....................: channel initialization failed
> MPIDI_CH3_Init(89).................:
> MPID_nem_init(320).................:
> MPID_nem_tcp_init(171).............:
> MPID_nem_tcp_get_business_card(418):
> MPID_nem_tcp_init(352).............:
> MPID_Get_processor_name(33)........: Failed to get processor name
>
> % mpirun -np 1 ./mpitest
> [mpiexec@] HYD_pmcd_pmiserv_proxy_init_cb (pm/pmiserv/pmiserv_cb.c:445):
> assert (!closed) failed
> [mpiexec@] HYDT_dmxu_poll_wait_for_event (tools/demux/demux_poll.c:76):
> callback returned error status
> [mpiexec@] HYD_pmci_wait_for_completion (pm/pmiserv/pmiserv_pmci.c:198):
> error waiting for event
> [mpiexec@] main (ui/mpich/mpiexec.c:344): process manager error waiting
> for completion
>
>
> Thanks,
> Alex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20150722/e7380bfc/attachment-0003.htm>
More information about the Users
mailing list