...
The NetCDF library is available for several compilers. It is linked dynamically to the threadsafe hdf5- and szip libraries build with the same compiler.
Version | compiler | hdf5 | Serial/Parallel | Remarks |
---|---|---|---|---|
4.7.3 | gcc/4.5.8 | 1.10.5 | serial | fortran-4.5.2, cxx-4.3.1 |
gcc/7 | 1.10.5 | serial | fortran-4.5.2, cxx-4.3.1 | |
gcc/8.3.0 | 1.10.5 | serial | fortran-4.5.2, cxx-4.3.1 | |
intel/18.0.6 | 1.10.5 | serial | fortran-4.5.2, cxx-4.3.1 | |
intel/18.0.6 , impi/2018.5 | 1.10.5 (impi) | parallel | fortran-4.5.2, cxx-4.3.1 | |
4.7.4 | gcc/8.3.0 | 1.12.0 | serial | fortran-4.5.3, cxx-4.3.1 |
gcc/9.2.0, opmi/3.1.5 | 1.10.6 (ompi) | parallel | fortran-4.5.3, cxx-4.3.1 | |
intel/18.0.6, opmi/3.1.6 | 1.10.6 (ompi) | parallel | fortran-4.5.3, cxx-4.3.1 | |
intel/19.0.5 | 1.12.0 | serial | fortran-4.5.2, cxx-4.3 |
Modules
Example Jobscripts
...
language | bash |
---|
...
.1 | ||||
4.8.1 | intel/19.0.5 | 1.12.1 | serial | fortran-4.5.2, cxx-4.3.1 |
4.9.1 | intel/2022.2 | 1.12.2 | serial | fortran-4.6.0, cxx-4.3.1 |
intel/2022.2, ompi/4.1.4 | 1.12.2(ompi) | parallel | fortran-4.6.0, cxx-4.3.1 | |
4.9.2 | gcc/9.3.0 | 1.12.2 | serial | fortran-4.6.1, cxx-4.3.1 |
Since the intel compilers an lise and emmy differ, the installation of netcdf build with intel compilers is double work. Hence, installation is done only on one complex. Please contact support, if this does not meet your requests.
Modulefiles and environmental variables
Loading a NetCDF modulefile extends PATH with the path to the NetCDF binaries. This includes nc_config and nf_config, which can be used to gain information on the path to include files and libraries in compiler scripts and makefiles. Use
module show netcdf/<version>
module help netcdf/<version>
to investigate details on exported environment variables.
LD_RUN_PATH is extended when a netcdf-module is loaded. It can be used to define rpath in the binarues.
The netcdf-modules are not needed to run programs linked to a netcdf library!
Example to compile smp-programs using the netcdf library
Here we demonstrate the usage of environmental variables to find the netcdf - include files and to link the netcdf libraries.
Installing netcdf at HLRN
We discuss the installation of serial and parallel netcdf at HLRN