error in nonblocking.c?

Wei-keng Liao wkliao at ece.northwestern.edu
Thu Nov 15 13:51:46 CST 2012


By the way, MPI_Request is an opaque object in MPICH, not an integer.
So you probably is printing a pointer address.
IBM may choose to implement it as an integer. Anyway, the right way to
use it is to define the requests as MPI_Request type.

Wei-keng

On Nov 15, 2012, at 1:42 PM, Jim Edwards wrote:

> Ah but there is no fortran definition of NC_REQ_NULL, so it's still an issue.
> 
> On Thu, Nov 15, 2012 at 12:37 PM, Jim Edwards <jedwards at ucar.edu> wrote:
> So this program illustrates the problem:
> 
> #include <mpi.h>
> #include <stdio.h>
> #include <pnetcdf.h>
> 
> int main()
> {
>   printf("%d %d\n",MPI_REQUEST_NULL,NC_REQ_NULL);
> }
> 
> 
> On Cray systems using pgi compiler:
> 
> ./a.out
> 738197504 -1
> 
> I can try using NC_REQ_NULL instead of MPI_REQUEST_NULL in my program, but I'm afraid that's just going to cause this problem to manifest in a different way.
> 
> 
> 
> 
> On Thu, Nov 15, 2012 at 11:34 AM, Jim Edwards <jedwards at ucar.edu> wrote:
> On Cray systems the MPI constant MPI_REQUEST_NULL resolves to 738197504
> but passing this value into nonblocking.c results in an error: 
> 
> Error: no such request ID = 738197504
> 
> 
> I think that this is an error in parallel-netcdf ncmpii_wait.   
> 
> On the ibm aix system MPI_REQUEST_NULL resolves to -1 and nonblocking.c seems to handle it correctly.
> 
> 
> -- 
> Jim Edwards
> 
> CESM Software Engineering Group
> National Center for Atmospheric Research
> Boulder, CO 
> 303-497-1842
> 
> 
> 
> 
> -- 
> Jim Edwards
> 
> CESM Software Engineering Group
> National Center for Atmospheric Research
> Boulder, CO 
> 303-497-1842
> 
> 
> 
> 
> -- 
> Jim Edwards
> 
> CESM Software Engineering Group
> National Center for Atmospheric Research
> Boulder, CO 
> 303-497-1842
> 



More information about the parallel-netcdf mailing list