Shared library version of pnetcdf

Latham, Robert J. robl at mcs.anl.gov
Tue Sep 26 10:26:28 CDT 2017


On Tue, 2017-09-26 at 08:47 +0000, Wadud Miah wrote:
> Hi Wei-keng,
> 
> I would like to profile IOR using Darshan and the profiling is done
> via LD_PRELOAD, so I presume IOR has to dynamically link to pNetCDF.
> This is my understanding - is this correct?

LD_PRELOAD defintiely works with Darshan, and is a flexible way to do
so.

Darshan can also use static libraries and profiler tricks to wrap
symols at link time.  Typically, whomever installs darshan will also
generate an 'mpicc' wrapper script that contiains these magic linker
invocations and do the interception for you.

http://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.h
tml#_instrumenting_statically_linked_applications

==rob

> -----Original Message-----
> From: Wei-keng Liao [mailto:wkliao at eecs.northwestern.edu] 
> Sent: 25 September 2017 17:19
> To: Wadud Miah <wadud.miah at nag.co.uk>
> Cc: parallel-netcdf at lists.mcs.anl.gov
> Subject: Re: Shared library version of pnetcdf
> 
> Hi, Wadud
> 
> > but a shared object file will allow me to profile IOR,
> 
> Could you please let me know why profiling IOR can only be done
> using shared object files?
> 
> FYI.
> The next release of PnetCDF will support shared library using
> libtools.
> 
> 
> Wei-keng
> 
> On Sep 25, 2017, at 3:37 AM, Wadud Miah wrote:
> 
> > Hi,
> > 
> > This question may have been asked already, but I could not find a
> definitive answer in the mailing list. I would like to build a shared
> object version of pnetcdf so I can link it to the IOR benchmark. I
> know a static version is faster, but a shared object file will allow
> me to profile IOR, so that is the reason why. Any help will be
> greatly appreciated. I could not find any configure flags for pnetcdf
> to allow me to build a shared object version of the library.
> > 
> > Regards,
> > Wadud.
> > 
> > -----------------------------------
> > Dr. Wadud Miah
> > Numerical Algorithms Group
> > 
> > 
> > 
> > 
> > Disclaimer
> > 
> > The Numerical Algorithms Group Ltd is a company registered in
> England and Wales with company number 1249803. The registered office
> is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United
> Kingdom.
> > 
> > This e-mail has been scanned for all viruses and malware, and may
> have been automatically archived by Mimecast Ltd, an innovator in
> Software as a Service (SaaS) for business.
> > 
> 
> 
> Disclaimer
> The Numerical Algorithms Group Ltd is a company registered in England
> and Wales with company number 1249803. The registered office is:
> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
> 
> This e-mail has been scanned for all viruses and malware, and may
> have been automatically archived by Mimecast Ltd, an innovator in
> Software as a Service (SaaS) for business.


More information about the parallel-netcdf mailing list