[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #IUE-665044]: netcdf with Intel compiler

Hi Andre,

> here are the configurations I used to install the netcdf-library from source
> using the Intel Compiler Suite (Composer XE 2011 Update 4 for Linux,
> intel64_2011.4.191) on an (K)Ubuntu/Linux 11.04 64bit system.
> I installed zlib, hdf5, and netcdf from source.
> zlib-1.2.5: I was not able to compile the shared library with the Intel
> compiler (I don't know why), but it works using the GNU compiler.
> hdf5-1.8.6: no problems.
> netcdf-4.1.3: I had to compile in several iterations, incrementally adding
> optimization flags; I'm not sure why that is. Maybe there is a difference
> between shared and static library?
> My current build using the attached scripts works well.
> I don't have much experience with Intel compilers and source installs in
> general, so if anyone can shed some light on the above issues, that would be
> highly appreciated.

And you asked the netcdfgroup mailing list:

> ... but I'm using netcdf in Python, so I need the shared libs.
> ... is it possible to build shared libs for netcdf using static libs of zlib 
> and hdf5?

We have some new information on this, thanks to Davide Del Vento from NCAR's 
CISL (Computational Information Systems Laboratory):

  We have been able to compile netcdf-4.1.3 in fully shared mode with
  the Intel compiler (and soon with PGI). The issue for us is HDF5. In
  fact you need to have all the dependencies compiled shared, of
  course. And HDF5 compiles in shared mode only under certain
  circumstances. Most notably, HDF5 does *not* compile in shared mode
  and parallel/MPI at the same time: serial can be shared, parallel
  can only be static. This is a known issue for HDF5 ... The fact
  that pathscale and gcc "worked" was an accident of the way we
  compiled HDF5 with those compilers.


Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: IUE-665044
Department: Support netCDF
Priority: Critical
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.