SIGSERV in MPI_Comm_rank
Adolph J. Vogel
ajvogel at tuks.co.za
Mon Jul 28 06:29:32 CDT 2008
Hi,
I'm having trouble when running a hello world example program with PETSc.
Running the same type of program with plain MPI works. This lead me to
believe that the error lies with my PETSc setup.
I get the following error:
$ ./hello
MPI process rank 0 (n0, p28410) caught a SIGSEGV in MPI_Comm_rank.
Rank (0, MPI_COMM_WORLD): Call stack within LAM:
Rank (0, MPI_COMM_WORLD): - MPI_Comm_rank()
Rank (0, MPI_COMM_WORLD): - main()
and:
$ mpirun -np 2 hello
-----------------------------------------------------------------------------
One of the processes started by mpirun has exited with a nonzero exit
code. This typically indicates that the process finished in error.
If your process did not finish in error, be sure to include a "return
0" or "exit(0)" in your C code before exiting the application.
PID 28430 failed on node n0 (127.0.0.1) due to signal 11.
-----------------------------------------------------------------------------
Does anyone have any idea what the error might be?
Thank you in advance.
Adolph
PS: hello.c:
#include "petsc.h"
#include <stdio.h>
int main( int argc, char *argv[] )
{
PetscInitialize( &argc, &argv, 0, 0 );
PetscPrintf( PETSC_COMM_WORLD, "Hello World\n" );
PetscFinalize();
return 0;
}
--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Adolph J. Vogel ajvogel at tuks.co.za
Department Mechanical and Aeronautical Engineering
University of Pretoria, South Africa
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
More information about the petsc-users
mailing list