error in nonblocking.c?

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


Hi, Jim,

NC_REQ_NULL is to be used by the pnetcdf nonblocking APIs.
It is not intended to be the same as MPI_REQUEST_NULL.
Could you explain why your case will desire them to be the same?

Wei-keng

On Nov 15, 2012, at 1:37 PM, Jim Edwards 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
> 



More information about the parallel-netcdf mailing list