1

I am trying to follow this tutorial for building and running an MPI application on an ARM based Ubuntu 11.10 system.

When installing open-mpi environment on my PC machine, the sample program runs well. However, trying the same on the ARM machine, the terminal hangs up and I need to kill the MPI process from a second terminal in order to release it.

The MPI packages I installed using apt-get, on both machines, were mpi-default-dev and mpi-default-bin, so I assume that the packages are as updated as they can be.

The first sample program in the tutorial makes every process prints a "hello" message with some info. On the PC I get messages from all 8 processes (although running on a single core) and then the program ends. On the ARM, I get no output at all. The program is just stuck immediately after launch.

Any idea on what's wrong? I am not sure even where to start to debug this?

Update: I tried removing the OpenMPI package and install the alternative MPICH2 package - but the result is just the same.

8
  • Try running your program on one process only mpiexec -n 1 or whatever variation thereof you use. Commented Jan 13, 2013 at 23:30
  • @HighPerformanceMark - thanks, already tried that. Commented Jan 13, 2013 at 23:54
  • @HighPerformanceMark - actually, following the tutorial, I used mpirun -np1 .... Should this make a difference? Commented Jan 13, 2013 at 23:56
  • I wouldn't expect so. I use mpiexec because it is standard across MPI implementations (or ought to be). There used to be variation in the capabilities and syntax of mpirun on the different MPI implementations but what you have written looks OK to me. Commented Jan 13, 2013 at 23:59
  • @HighPerformanceMark - gave it a try. mpiexec does not work either. Commented Jan 14, 2013 at 0:27

1 Answer 1

3

Ubuntu 11.10 did not ship with a functional Open MPI implementation for ARM (although it may have shipped with a nonfunctional one). Ubuntu 12.04 did.

I would recommend building your own Open MPI from source - available at http://www.open-mpi.org/software/ompi/v1.6/, unless you can update to a more recent version of Ubuntu.

Alternatively, you could rebuild the 11.10 package using the fixes pointed out in https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/949044.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, this may explain why the pre-built packages did not work. Yesterday I ended up building the package from the sources downloaded form the OpenMPI website. It did require some thorough cleaning of the system from remains of the old packages but once done, it now runs the hello-world example on a single computer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.