You are not logged in.

#1 2013-01-08 13:20:43

Apocalypse_666
Member
Registered: 2007-11-12
Posts: 18

MPI spontaneously aborts

Dear everyone,

I'm busy developing an application using OpenMPI, but I can't seem to get it working. I've installed OpenMPI 1.6.3. I've written/copied a small test program to see if it works, but whenever I try to run it I get the following message:

[linus@linus-desktop asp]$ mpirun -np 4 test
--------------------------------------------------------------------------
mpirun noticed that the job aborted, but has no info as to the process
that caused that situation.
--------------------------------------------------------------------------

This is the test program I'm running:


#include <stdio.h>
#include <mpi.h>

int main(int argc, char **argv){
  int rank, size;

  printf("MPI is not yet initialized\n");
  MPI_Init (&argc, &argv);
  MPI_Comm_rank(MPI_COMM_WORLD, &rank);
  MPI_Comm_size(MPI_COMM_WORLD, &size);
  printf("Hello world from process %d of %d\n", rank, size);
  MPI_Finalize();
  return 0;
}

I'm running 3.6.11-1-ARCH, all my packages are up to date.

Does anybody have an idea what's going on?

Regards,

Linus

PS. I hope I posted this in the right place, there doesn't seem to be a dedicated development section on this forum.

Offline

#2 2013-01-08 13:25:24

Apocalypse_666
Member
Registered: 2007-11-12
Posts: 18

Re: MPI spontaneously aborts

Oh wow. Okay, never mind... It seems that I used the wrong command when invoking my program. It should be mpirun -np <x> ./test instead of mpirun -np <x> test. I tried deleting this post, but I can't seem to figure out how?

Offline

Board footer

Powered by FluxBB