You are not logged in.

#1 2013-11-13 17:21:39

vsilv
Member
Registered: 2013-11-13
Posts: 13

MPI problem with mpirun, using mpicc and simple hellworld program.

analog to my stackoverflow post I need help with mpi. I am using openmpi and this is my sourcecode:

#include <stdio.h>                   
#include <mpi.h>                     
main (int argc, char* argv[]) {
int myrank;
int size;
MPI_Init(&argc, &argv);                  
MPI_Comm_rank(MPI_COMM_WORLD, &myrank);   
MPI_Comm_size(MPI_COMM_WORLD, &size);     
printf("Hello World. I'm process %d of %d processes.", myrank, size);
MPI_Finalize();                         
return 0;
}
 

If I now do:

mpicc test.c -o test

this works fine, but

mpirun -np 2 test

I get the error:

--------------------------------------------------------------------------
mpirun noticed that the job aborted, but has no info as to the process
that caused that situation.
--------------------------------------------------------------------------

What could be the reason for this problem???
What can I do now?
Do you need further information?

Last edited by vsilv (2013-11-13 17:27:37)

Offline

#2 2013-11-13 17:24:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: MPI problem with mpirun, using mpicc and simple hellworld program.

Fixed broken link, moving to Programming and Scripting...

Please edit your post title to better reflect your issue: https://wiki.archlinux.org/index.php/Fo … ow_to_Post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB