[mpich-discuss] compilation problem with mpich2-1.4
Jean-Michel Beuken
Jean-Michel.beuken at uclouvain.be
Sat Jul 9 08:43:09 CDT 2011
Hello Ben,
>> The kind (4) of this actual argument does not match that of its associated dummy argument (8). call MPI_Type_hvector(ny,1,stride_x,column_type,new_type,mpi_err)
> The error is likely with the literal 1 value. It is being stored as integer 4 byte when the value should be (according to the error) 8 byte.
thank you
I suspected it a little...
change 1 by int(1,4) is the solution ( others args must be also changed... )
> This site ( http://www.arsc.edu/support/news/HPCnews/HPCnews215.shtml ) has a small section that talks about this error and how to fix it (not mpich specific but the same rules should still apply).
if I understand correctly, and if it's not mpich specific, it's more a problem of compiler
but, why the compilation succeeded with mpich2 1.3 and failed when I use mpich2 version 1.4 while it's the same compiler ( gcc 461 ) ? :-\
FYI, gcc4.[4,5,6] or ifort 11.1 ( with openmpi 1.4 or mpich2 1.3 ) does not detect this problem either...
thanks
jmb
More information about the mpich-discuss
mailing list