<div dir="ltr"><div>Okay I get this error :<br><br>MPI_File_open: MPI_ERR_OTHER: known error not in list<br>--------------------------------------------------------------------------<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>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"><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 class="HOEnZb"><div class="h5">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 class="HOEnZb"><div class="h5">}<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>-- <br>Aroma Mahendru<div>Electronics Engineering<br>Indian Institute of Technology (BHU)<div>Varanasi</div></div>
</div>