Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Ivan de Jesus Deras Tabora (ideras_at_[hidden])
Date: 2007-01-30 16:55:09

Recently I installed OpenMPI 1.1.4 using the source RPM on Fedora Core
6. then I tried to run some benchmarks from NASA. First I tried is
some I/O benchmarks, It compiles, but when I run it, it generates the
following error:

[abc:25584] *** An error occurred in MPI_Type_create_subarray
[abc:25583] *** on communicator MPI_COMM_WORLD
[abc:25583] *** MPI_ERR_TYPE: invalid datatype
[abc:25583] *** MPI_ERRORS_ARE_FATAL (goodbye)

Then I find all the references to the MPI_Type_create_subarray and
create a little program just to test that part of the code, the code I
created is:

#include "mpi.h"

int main(int argc, char *argv[])
    MPI_Datatype subarray, type;
    int array_size[] = {9};
    int array_subsize[] = {3};
    int array_start[] = {1};
    int i, err;

    MPI_Init(&argc, &argv);

    /* Create a new type */
    MPI_Type_contiguous(5, MPI_INT, &type);

    /* Create a subarray datatype */
    MPI_Type_create_subarray(1, array_size, array_subsize,
array_start, MPI_ORDER_C, type, &subarray);

    return 0;

After running this little program using mpirun, it raises the same error.

Thanks in advance,