I was trying to run this example<br><br><span style="font-style: italic; background-color: rgb(204, 204, 204);">#include "mpi.h"</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">
#include <stdio.h></span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">#define BUFSIZE 100000</span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);">int main(int argc, char *argv[])</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">
{</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> int i, myrank, numprocs;</span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);"> </span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">
MPI_Status status;</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_Init(&argc, &argv);</span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_Comm_rank(MPI_COMM_WORLD, &myrank);</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> </span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);"> double start, finish, tempo;</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">
MPI_Aint lb, extent;</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_Datatype etype, filetype, contig;</span>
<br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_Offset disp;</span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_File fh;</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">
int buf[1000];</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_File_open(MPI_COMM_WORLD, "data.dat",MPI_MODE_CREATE | MPI_MODE_RDWR, MPI_INFO_NULL, &fh);
</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_Type_contiguous(2, MPI_INT, &contig);</span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);"> lb = 0;</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">
extent = 6 * sizeof(int);</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_Type_create_resized(contig, lb, extent, &filetype);
</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_Type_commit(&filetype);</span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);"> disp = 5 * sizeof(int); /* assume displacement in this file view</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">
is of size equal to 5 integers */</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> etype = MPI_INT;</span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_File_set_view(fh, disp, etype, filetype, "native",MPI_INFO_NULL);</span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);"> start=MPI_Wtime();</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">
MPI_File_write(fh, buf, 1000, MPI_INT, MPI_STATUS_IGNORE);</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> finish=MPI_Wtime();
</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> printf("\nResult : %f\n",finish-start);</span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);"> MPI_File_close(&fh);</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);">
MPI_Finalize();</span><br style="font-style: italic; background-color: rgb(204, 204, 204);"><span style="font-style: italic; background-color: rgb(204, 204, 204);"> return 1;</span><br style="font-style: italic; background-color: rgb(204, 204, 204);">
<span style="font-style: italic; background-color: rgb(204, 204, 204);">}</span><br><br>and it fails with this message below:<br><br>Error: Unsupported datatype passed to ADIOI_Count_contiguous_blocks<br>[cli_0]: aborting job:
<br>application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0<br>rank 0 in job 1 luizmendes_34376 caused collective abort of all ranks<br> exit status of rank 0: return code 1<br><br>what it could be?<br><br>thanks<br>
luiz mendes<br><br>