[mpich-discuss] compilation problem with mpich2-1.4

Rajeev Thakur thakur at mcs.anl.gov
Sat Jul 9 16:21:45 CDT 2011


If you are using the Fortran 90 "mpi" module ("use mpi"), there were some updates to it in 1.4 which probably do a better job of catching these errors.

Rajeev

On Jul 9, 2011, at 8:43 AM, Jean-Michel Beuken wrote:

> 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
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list