0.9.3 installation problems on GNU/Linux with lam-mpi

William Gropp gropp at mcs.anl.gov
Wed Feb 4 07:57:32 CST 2004


At 08:43 AM 2/3/2004, Raimondo Giammanco wrote:
>Hello,
>
>I tried to install 0.9.3 on a GNU/Linux PC with lam-mpi-7.0.2,
>and I am having the following problem:
>
>1) autoconf
>
>2) ./configure --prefix=SOME_PATH --with-mpi=/usr
>
>3) make all
>
>It returns in src/lib
>
>################
>mpinetcdf.c: In function `length_of_mpitype':
>mpinetcdf.c:382: switch quantity not an integer

This is a bug in mpinetcdf.c .  The MPI standard allows the MPI handles to 
be pointers (in fact, they need not be defined until after MPI_Init 
returns).  Most implementations prefer to use compile-time constants (MPICH 
switched from pointers to constants some time ago), but LAM's choice is 
within the standard.  In this case, the chain-of-ifs is probably the best 
solution.  For the x_putn_xxx routines, we should consider passing the 
NC_<type> name instead of the MPI datatype, since the NC_<type> is 
guaranteed to be a compile-time constant suitable for a switch statemetn.

BIll




More information about the parallel-netcdf mailing list