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

Jayesh Krishna jayesh at mcs.anl.gov
Tue Nov 15 09:44:38 CST 2011


 Did you try the latest stable release (1.4.1p1)?

-Jayesh

----- Original Message -----
From: "Michael Warthon" <michael.warthon at upr.edu>
To: mpich-discuss at mcs.anl.gov
Sent: Monday, November 14, 2011 7:54:43 PM
Subject: [mpich-discuss] Segmentation Fault when running any application.



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! 
_______________________________________________
mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
To manage subscription options or unsubscribe:
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss


More information about the mpich-discuss mailing list