Difference between revisions of "Install Yambo with external HDF5 and NetCDF libraries"

From The Yambo Project
Jump to navigation Jump to search
Line 9: Line 9:


then you should have in your PATH the executable '''h5pfc''' that is a fortran compiler that <br>
then you should have in your PATH the executable '''h5pfc''' that is a fortran compiler that <br>
automatically link the HDF5 libraries. Now we will extract from this compiler all information to configure Yambo.<br>
automatically link the HDF5 libraries. Now we will extract from this compiler all information to configure Yambo.<br><br>
Just type:
Just type:
h5pfc -show
the compiler will show the command line to compiler codes with HDF5, it will look something like:
mpiifort -assume bscc -O3 -g -ip -I/home/netcdf/hdf5-1.12.0_rosa/include -L/home/netcdf/hdf5-1.12.0_rosa/lib /home/netcdf/hdf5-1.12.0_rosa/lib/libhdf5hl_fortran.a /home/netcdf/hdf5-1.12.0_rosa/lib/libhdf5_hl.a /home/netcdf/hdf5-1.12.0_rosa/lib/libhdf5_fortran.a /home/netcdf/hdf5-1.12.0_rosa/lib/libhdf5.a -lz -ldl -lm -Wl,-rpath -Wl,/home/netcdf/hdf5-1.12.0_rosa/lib

Revision as of 17:21, 9 January 2022

In the major part of supercomputing centre HDF5 and NetCDF libraries are already installed.
Here we will show how to configure Yambo to use the installed libraries instead of the internal ones.

HFD5 libraries

First of all you have to load the corresponding modules, if available, with something like:

module load hdf5_1.12.0

then you should have in your PATH the executable h5pfc that is a fortran compiler that
automatically link the HDF5 libraries. Now we will extract from this compiler all information to configure Yambo.

Just type:

h5pfc -show

the compiler will show the command line to compiler codes with HDF5, it will look something like:

mpiifort -assume bscc -O3 -g -ip -I/home/netcdf/hdf5-1.12.0_rosa/include -L/home/netcdf/hdf5-1.12.0_rosa/lib /home/netcdf/hdf5-1.12.0_rosa/lib/libhdf5hl_fortran.a /home/netcdf/hdf5-1.12.0_rosa/lib/libhdf5_hl.a /home/netcdf/hdf5-1.12.0_rosa/lib/libhdf5_fortran.a /home/netcdf/hdf5-1.12.0_rosa/lib/libhdf5.a -lz -ldl -lm -Wl,-rpath -Wl,/home/netcdf/hdf5-1.12.0_rosa/lib