<div>Hello,</div>
<div> </div>
<div>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. </div>
<div> </div>
<div><font color="#960000" face="Courier New"><font color="#960000" face="Courier New">
<p>#include</p></font></font><font face="Courier New"> </font><font color="#960000" face="Courier New"><font color="#960000" face="Courier New"><stdio.h><br>#include</font></font><font face="Courier New"> </font><font color="#960000" face="Courier New"><font color="#960000" face="Courier New"><mpi.h><br>
<br></font></font><font color="#941edf" face="Courier New"><font color="#941edf" face="Courier New">int</font></font><font face="Courier New"> main(</font><font color="#941edf" face="Courier New"><font color="#941edf" face="Courier New">int</font></font><font face="Courier New"> argc, </font><font color="#941edf" face="Courier New"><font color="#941edf" face="Courier New">char</font></font><font face="Courier New"> *argv[]) {<br>
</font><font color="#941edf" face="Courier New"><font color="#941edf" face="Courier New">int</font></font><font face="Courier New"> numprocs, rank, namelen;<br></font><font color="#941edf" face="Courier New"><font color="#941edf" face="Courier New">char</font></font><font face="Courier New"> processor_name[MPI_MAX_PROCESSOR_NAME];<br>
<br>MPI_Init(&argc, &argv);<br>MPI_Comm_size(MPI_COMM_WORLD, &numprocs);<br>MPI_Comm_rank(MPI_COMM_WORLD, &rank);<br>MPI_Get_processor_name(processor_name, &namelen);<br><br>printf(</font><font color="#00cb00" face="Courier New"><font color="#00cb00" face="Courier New">"Process %d on %s out of %d\n"</font></font><font face="Courier New">, rank, processor_name, numprocs);<br>
<br>MPI_Finalize();<br>}</font>
<p><font face="Courier New">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:</font></p>
<p><font face="Courier New">mpiexec -n 1 a.exe</font></p>
<p><font face="Courier New">No matter what executable I try to run, I still receive the same error. Any help regarding this would be greatly appreciated!</font></p></div>