[mpich-discuss] compilation problem with mpich2-1.4
Anthony Chan
chan at mcs.anl.gov
Sat Jul 9 19:12:31 CDT 2011
FYI:
mpich2-1.4's explicitly defines MPI_Type_hvector in fortran90 module
as follows:
SUBROUTINE MPI_TYPE_HVECTOR(v0,v1,v2,v3,v4,ierror)
USE MPI_CONSTANTS,ONLY:MPI_ADDRESS_KIND
INTEGER v0, v1
INTEGER(KIND=MPI_ADDRESS_KIND) v2
INTEGER v3, v4
INTEGER ierror
END SUBROUTINE MPI_TYPE_HVECTOR
While in mpich2-1.3.2p1, there isn't explicit prototype
for MPI_Type_hvector in fortran90 module.
A.Chan
----- Original Message -----
> 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
>
> _______________________________________________
> 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