error in nonblocking.c?

Jim Edwards jedwards at ucar.edu
Thu Nov 15 13:42:40 CST 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20121115/1a0781e3/attachment.html>


More information about the parallel-netcdf mailing list