Why does MPI give runtime errors

After i typed

sudo apt-get install mpich2

Mpich is installed, but the first problem is that I do not know where the files were installed. On the other hand, when I wrote

mpirun -np 3 ./hello.o

this gives me:

mpiexec_hani-laptop: cannot connect to local mpd (/tmp/mpd2.console_hani); possible causes:
  1. no mpd is running on this host
  2. an mpd is running but was started without a "console" (-n option)
In case 1, you can start an mpd on this host with:
    mpd &
and you will be able to run jobs just on this host.
For more details on starting mpds on a set of hosts, see
the MPICH2 Installation Guide.

Can anyone help.

+4
source share
5 answers

Probably because mpd (the multipurpose daemon) does not work as it says. Hydra is another popular process control system for parallel processes. Try the following:

mpd &

or that:

mpiexec.hydra -np 3 ./hello.o

These daemons are used to schedule processes to the required kernels. Note. After running the above command mpirun also works without problems.

+5
source

, mpirun, which mpirun ( ). mpd , mpi , -. mpich, , , .

0

mpich2 mpd . , mpd , MPI.

, mpd , ( "secretkey", , mpich2.)

, mpich2 OpenMPI LAM?

0

You need to configure the mpich hosts file and give it the ability to run tasks on other hosts. for example with rsh and /etc/hosts.equivin a reliable network environment.

For testing purposes only, I think that there is only a local host to run mpich. Oh, but maybe not enabled by default: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=301551

Sorry, I don’t remember the tricks ... It has been too long.

0
source

try adding a line to my script exporting some libraries:

export LD_LIBRARY_PATH=/usr/local/mpich2-1.0.5p4/lib:/usr/local/hdf5/lib:$LD_LIBRARY_PATH
0
source

Source: https://habr.com/ru/post/1721825/


All Articles