[mpich-discuss] Segmentation Fault when running any application.

Michael Warthon michael.warthon at upr.edu
Mon Nov 14 19:54:43 CST 2011


Hello,

I am new to MPI and I went and installed mpich2 1.4.1 onto a windows system
that is being used through cygwin. I have compiled the code that simply
prints the process and rank as shown below.


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

int main(int argc, char *argv[]) {
int numprocs, rank, namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];

MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_name, &namelen);

printf("Process %d on %s out of %d\n", rank, processor_name, numprocs);

MPI_Finalize();
}

Nothing too complicated. However, I still receive an error from the command
line in cygwin that simply reads segmentation fault: (core dumped). The
command I used was:

mpiexec -n 1 a.exe

No matter what executable I try to run, I still receive the same error. Any
help regarding this would be greatly appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111114/6fef13ff/attachment.htm>


More information about the mpich-discuss mailing list