Shared library version of pnetcdf

Wadud Miah wadud.miah at nag.co.uk
Mon Sep 25 07:45:13 CDT 2017


Hi Bruno,

cheers for the info. that seems like it has worked, but I will build and run IOR with the dynamic shard object. 

Wadud.

-----Original Message-----
From: Bruno Pagani [mailto:bruno.pagani at astrophysics.eu] 
Sent: 25 September 2017 13:30
To: Ed Hartnett <edwardjameshartnett at gmail.com>; Wadud Miah <wadud.miah at nag.co.uk>
Cc: parallel-netcdf at lists.mcs.anl.gov
Subject: Re: Shared library version of pnetcdf

Le 25/09/2017 à 14:10, Ed Hartnett a écrit :
> You know, I believe I don't have shared pnetcdf libraries either!
>
> So I will echo Wadud's question: how do I build a pnetcdf shared library.
>

They apparently build the shared version on Debian, by adding -fPIC to
{C,CXX,FC,F}FLAGS and then after running make they do the following things:

cd src/lib && mpicxx -shared -o libpnetcdf.so.0d -Wl,--soname
-Wl,libpnetcdf.so.0d $(LDFLAGS) -Wl,--whole-archive libpnetcdf.a
-Wl,--no-whole-archive -lgfortran
chrpath -d ./src/lib/libpnetcdf.so.0d

And finally they symlink this lib to libpnetcdf.so

Hope it helps,
Bruno

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


More information about the parallel-netcdf mailing list