Yes, the version on the cluster is old. It has a bug that has been fixed in newer versions of openmpi. Try 1.7.1 or 1.6.5<br><br><div class="gmail_quote">On Wed, Jun 26, 2013 at 2:40 PM, Aroma Mahendru <span dir="ltr"><<a href="mailto:aroma.mahendru.ece10@iitbhu.ac.in" target="_blank">aroma.mahendru.ece10@iitbhu.ac.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Okay I get this error :<div class="im"><br><br>MPI_File_open: MPI_ERR_OTHER: known error not in list<br>
</div><div class="im">--------------------------------------------------------------------------<br>MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD <br>
with errorcode 1.<br><br>NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.<br>You may or may not see output from other processes, depending on<br>exactly when Open MPI kills them.<br>--------------------------------------------------------------------------<br>
<br></div></div>So, does this mean there is an older version of openmpi ?The version on the cluster is Open MPI 1.5.4.<br></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Wed, Jun 26, 2013 at 4:17 PM, Rob Latham <span dir="ltr"><<a href="mailto:robl@mcs.anl.gov" target="_blank">robl@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Wed, Jun 26, 2013 at 03:53:57PM -0400, Aroma Mahendru wrote:<br>
> Actually I did compile and execute the basic mpi program given there. It<br>
> executed without any errors. But am I supposed to see any file created as<br>
> well ?<br>
<br>
</div></div>That simple test program doesn't check for errors. It ensures your<br>
MPI library knows about MPI-IO routines. In 2013 it would be shocking<br>
if it did not.<br>
<br>
It *should* create a zero-length file called "testfile" in the current<br>
directory. If it did not, try again with this version with a bit more<br>
error checking/reporting:<br>
<br>
static void handle_error(int errcode, const char *str)<br>
{<br>
char msg[MPI_MAX_ERROR_STRING];<br>
int resultlen;<br>
MPI_Error_string(errcode, msg, &resultlen);<br>
fprintf(stderr, "%s: %s\n", str, msg);<br>
MPI_Abort(MPI_COMM_WORLD, 1);<br>
}<br>
<br>
#include <stdio.h><br>
#include <mpi.h><br>
int main(int argc, char **argv) {<br>
MPI_File fh;<br>
int ret;<br>
MPI_Init(&argc, &argv);<br>
ret = MPI_File_open(MPI_COMM_WORLD, "testfile", MPI_MODE_CREATE | MPI_MODE_RDWR,<br>
MPI_INFO_NULL, &fh);<br>
if (ret != MPI_SUCCESS) handle_error(ret, "MPI_File_open");<br>
MPI_File_close(&fh);<br>
MPI_Finalize();<br>
return 0;<br>
<div><div>}<br>
<br>
--<br>
Rob Latham<br>
Mathematics and Computer Science Division<br>
Argonne National Lab, IL USA<br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Aroma Mahendru<div>Electronics Engineering<br>Indian Institute of Technology (BHU)<div>Varanasi</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><pre>Jim Edwards<br><br><br></pre>