ncmpi_inq_malloc_max_size()

Wei-keng Liao wkliao at eecs.northwestern.edu
Sun Apr 7 19:03:24 CDT 2019


Hi,

This is a bug reported by Bruno Pagani and its fix has been added
to the master branch. I plan to make a minor release of PnetCDF soon.

Please note this bug only affect the example programs, not the PnetCDF library.
More information about the bug and fix can be found in
https://github.com/Parallel-NetCDF/PnetCDF/issues/34
https://github.com/Parallel-NetCDF/PnetCDF/pull/35

FYI. If you added option "--enable-profiling” in your configure line
when building PnetCDF, this error will go away. This option collects
and reports memory footprints of PnetCDF library.

Wei-keng

> On Apr 7, 2019, at 6:44 PM, Max R. Dechantsreiter via parallel-netcdf <parallel-netcdf at lists.mcs.anl.gov> wrote:
> 
> Every source file in examples/C calls ncmpi_inq_malloc_max_size()
> (via pnetcdf_check_mem_usage), and this function is in the library:
> 
> 	308> nm -a libpnetcdf.a | grep ncmpi_inq_malloc_max_size
> 	0000000000000080 T ncmpi_inq_malloc_max_size
> 	                 U ncmpi_inq_malloc_max_size
> 	309>
> 
> however the parallel tests fail in that subdirectory because
> this function returns -222.  Should one simply remove it by
> 
> 	for file in examples/C/*.c
> 	do
> 		sed -i '/nerrs += pnetcdf_check_mem_usage/d' $file
> 	done
> 
> (for example), or is there another way?
> 



More information about the parallel-netcdf mailing list