Compilation problem when using openmpi-1.3.3

Kui Gao kgao at eecs.northwestern.edu
Tue Nov 24 11:29:41 CST 2009


Hi Chris,
	Thank you very much for your report. It is a bug. 
	"nc_type vartype" should be replaced by "MPI_Datatype vartype" at
L66 in src/lib/pnetcdf.h . 
	The patch file is attached.
	Thanks,

Kui.

-----Original Message-----
From: parallel-netcdf-bounces at lists.mcs.anl.gov
[mailto:parallel-netcdf-bounces at lists.mcs.anl.gov] On Behalf Of Rob Ross
Sent: Tuesday, November 24, 2009 8:37 AM
To: Christoper Daley
Cc: parallel-netcdf at lists.mcs.anl.gov
Subject: Re: Compilation problem when using openmpi-1.3.3

Yeah you're right that does look like a bug. Thanks! -- Rob

On Nov 24, 2009, at 12:16 AM, Christoper Daley wrote:

> Hi all,
>
>
> I'm unable to compile parallel-netcdf-1.1.0 with openmpi-1.3.3  
> compiler
> wrapper script (using gcc 4.4.2). I get the following compilation  
> error:
>
>
> mpinetcdf.c:13216: error: incompatible types when assigning to type
> 'nc_type' from type 'MPI_Datatype'
>
> (*request)->vartype = datatype;
>
>
> This looks like a bug to me as vartype is an enum field in the
> NCMPI_Req data structure.
>
>
> I am able to compile parallel-netcdf-1.1.0 with mpich2-1.1.1p1
> compiler wrapper script. I think this is because MPI_Datatype is
> a typedef for an integer in mpich, and so can be freely
> mixed with enum types. This is not the case in openmpi where
> MPI_Datatype is a typedef for a pointer to struct.
>
>
> Thanks for any help,
> Chris
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.nc_type
Type: application/octet-stream
Size: 275 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20091124/72aa99c4/attachment.obj>


More information about the parallel-netcdf mailing list