<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=203063817-28012007><FONT face=Arial
color=#0000ff size=2>Yes, that is a known bug (that MPI_Type_create_resized is
not recognized by ROMIO). You can do the same thing by using MPI_Type_struct
with an explicit LB and UB. We will fix it in a future
release.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203063817-28012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203063817-28012007><FONT face=Arial
color=#0000ff size=2>Rajeev</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203063817-28012007></SPAN> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-mpich-discuss@mcs.anl.gov
[mailto:owner-mpich-discuss@mcs.anl.gov] <B>On Behalf Of </B>Luiz
Mendes<BR><B>Sent:</B> Sunday, January 28, 2007 5:49 AM<BR><B>To:</B>
mpich-discuss<BR><B>Subject:</B> [MPICH] Errors in MPICH2<BR></FONT><BR></DIV>
<DIV></DIV>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></BLOCKQUOTE></BODY></HTML>