ncmpi_inq_malloc_max_size()

Max R. Dechantsreiter max at performancejones.com
Sun Apr 7 19:19:10 CDT 2019


On Sun, Apr 07, 2019 at 07:03:24PM -0500, Wei-keng Liao wrote:
> 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.

Sorry, it did not turn up when I searched the mailing list archives.

> 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.

Thank you, I will try that!  At first I tried "--enable-malloc-tracking"
until I noticed it was no longer recognized.

> 
> 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