User Tools

Site Tools


admin:compilaciones:abinit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
admin:compilaciones:abinit [2026/02/12 14:48] bbruzzoadmin:compilaciones:abinit [2026/02/13 18:00] (current) – ldd check bbruzzo
Line 207: Line 207:
 make install make install
 </code> </code>
 +
 +Disclaimer, al hacer make test fallan algunos tests:
 +
 +<code>
 +FAIL: tst_netcdf4.sh
 +FAIL: tst_ncgen4.sh
 +FAIL: run_back_comp_tests.sh
 +FAIL: tst_nccopy4.sh
 +</code>
 +
 +Habría que revisar porqué fallan.
 +
  
 == NetCFD-Fortran == == NetCFD-Fortran ==
Line 220: Line 232:
  
  
 +El output debería terminar con:
  
 +<code>
 +# NetCDF Fortran Configuration Summary
 +==============================
  
 +# General
 +-------
 +Library Version:                4.6.2
 +Configured On:                  Thu Feb 12 11:48:05 -03 2026
 +Host System:                    x86_64-pc-linux-gnu
 +Build Directory:                /data/shared/apps/abinit/10.6.3/netcdf/netcdf-fortran-4.6.2
 +Install Prefix:                 /data/shared/apps/abinit/10.6.3/libs
 +
 +# Compiling Options
 +-----------------
 +Fortran Compiler:               /opt/ohpc/pub/mpi/openmpi5-intel/5.0.3/bin/mpifort
 +FFLAGS:                         -g -fallow-argument-mismatch -mismatch_all
 +LDFLAGS:                        -L/data/shared/apps/abinit/10.6.3/libs/lib -Wl,-rpath,/data/shared/apps/abinit/10.6.3/libs/lib
 +C Compiler:                     /opt/ohpc/pub/mpi/openmpi5-intel/5.0.3/bin/mpicc
 +CPPFLAGS:                       -I/data/shared/apps/abinit/10.6.3/libs/include
 +CFLAGS:                         -O2 -DLONGLONG_IS_LONG
 +Shared Library:                 yes
 +Static Library:                 yes
 +Extra libraries:                -lnetcdf -lm
 +
 +# Features
 +--------
 +F03:                            yes
 +Dap Support:                    no
 +Logging Support:                no
 +NetCDF-2 API:                   yes
 +NetCDF-4 API:                   yes
 +CDF5 Support:                   yes
 +Parallel IO:                    yes
 +NetCDF4 Parallel IO:            yes
 +PnetCDF Parallel IO:            no
 +SZIP Write Support:             no
 +Zstandard Support:              no
 +Quantize:                       yes
 +
 +configure: WARNING:
 +configure: WARNING: ------------------------------------------
 +configure: WARNING: libnetcdf was built with zstd support, but HDF5_PLUGIN_PATH is not set, so zstd support is not enabled in libnetcdff. Set HDF5_PLUGIN_PATH and re-run configure if you want to enable zstd support.
 +
 +configure: WARNING: You can use `nc-config --plugindir` to determine the appropriate value for HDF5_PLUGIN_PATH
 +configure: WARNING: ------------------------------------------
 +configure: WARNING:
 +</code>
 +
 +
 +=== LIBXC ===
 +
 +Las implementaciones de libxc de CXXI no fueron compiladas con derivadas terceras:
 +
 +<code>
 +        +--------------------------------------------------------------+
 +        | Suboptimal libxc configuration                               |
 +        +--------------------------------------------------------------+
 +        | The LibXC package does not provide the 3rd derivatives of    |
 +        | energy!                                                      |
 +        | You should recompile it using --enable-kxc configure option. |
 +        | Otherwise Abinit will not be able to provide nonlinear       |
 +        | response properties (Raman intensities, ...).                |
 +        +--------------------------------------------------------------+
 +</code>
 +
 +Vamos a compilarlo específicamente para hacer esto dentro del directorio /data/shared/apps/abinit/<version>/libxc.
 +
 +Ver [[libxc|Compilación LibXC 6.2.2]]
 +
 +=== Wannier90 ===
 +
 +Es necesario agregar un symbolic link
 +
 +<code>ln -s libwannier.a libwannier90.a
 +</code>
 +
 +en el directorio lib/libs.
 +
 +== Compilando ==
 +
 +Usamos el siguiente archivo de configuración:
 +
 +<code snmgt01.ac9>
 +prefix="/data/shared/apps/abinit/10.6.3/build"
 +CC="icx"
 +CXX="mpicxx"
 +FC="mpifort"
 +with_mpi="/opt/ohpc/pub/mpi/openmpi5-intel/5.0.3"
 +with_mpi_flavor="native"
 +enable_mpi_gpu_aware="no"
 +enable_mpi_inplace="yes"
 +enable_mpi_io="auto"
 +with_mpi_level="2"
 +with_linalg_flavor="mkl"
 +LINALG_CPPFLAGS="-I${MKLROOT}/include"
 +LINALG_FCFLAGS="-I${MKLROOT}/include"
 +LINALG_LIBS="-L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread -lm -ldl"
 +with_fft_flavor="dfti"
 +FFT_CPPFLAGS="-I${MKLROOT}/include"
 +FFT_FCFLAGS="-I${MKLROOT}/include"
 +FFT_LIBS="-L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread -lm -ldl"
 +with_libxc="/data/shared/apps/abinit/10.6.3/libs"
 +#LIBXC_LIBS="-L/data/shared/apps/libxc/7.0.0/lib -lxcf90 -lxc"
 +#with_libxml2="/data/shared/apps/abinit/10.6.3/tmp/fb"
 +with_hdf5="/data/shared/apps/abinit/10.6.3/libs"
 +#HDF5_CPPFLAGS="-I/data/shared/apps/abinit/libs/include"
 +with_netcdf_fortran="/data/shared/apps/abinit/10.6.3/libs"
 +with_netcdf_c="/data/shared/apps/abinit/10.6.3/libs"
 +with_wannier90="/data/shared/apps/abinit/10.6.3/libs"
 +WANNIER90_LIBS="-L/data/shared/apps/abinit/10.6.3/libs/libi -lwannier -qmkl=sequential"
 +with_python_includes="-I/home/bbruzzo/.local/share/mamba/envs/myenv/include/python3.10"
 +with_python_libs="-L/home/bbruzzo/.local/share/mamba/envs/myenv/lib -lpython3.10"
 +PYTHON_CPPFLAGS="-I/home/bbruzzo/.local/share/mamba/envs/myenv/include/python3.10"
 +PYTHON_CFLAGS="-O2"
 +PYTHON_LDFLAGS="-L/home/bbruzzo/.local/share/mamba/envs/myenv/lib -lpython3.10"
 +</code>
 +
 +<code>
 +make check
 +make test_fast
 +make test_in
 +make install
 +</code>
 +
 +== Módulo ==
 +
 +<file lua 10.6.3.lua>
 +p([==[
 +Description
 +===========
 +ABINIT
 +
 +Version
 +=======
 +10.6.3
 +
 +More information
 +================
 + - Homepage: https://www.abinit.org/
 +]==])
 +
 +whatis([==[Description:  ABINIT is a software suite to calculate
 +the optical, mechanical, vibrational, and other observable
 +properties of materials.
 +Starting from the quantum equations of density functional theory,
 +you can build up to advanced applications with perturbation theories
 +based on DFT, and many-body Green's functions (GW and DMFT).
 +]==])
 +whatis([==[Homepage: https://www.abinit.org]==])
 +whatis("Compiled by bbruzzo")
 +
 +local root = "/data/shared/apps/abinit/10.6.3/build"
 +local libs = "/data/shared/apps/abinit/10.6.3/libs"
 +
 +if not ( isloaded("intel/2024.0.0") ) then
 +    load("intel/2024.0.0")
 +end
 +
 +if not ( isloaded("openmpi5") ) then
 +    load("openmpi5")
 +end
 +
 +prepend_path("PATH", pathJoin(root, "/bin"))
 +prepend_path("LD_LIBRARY_PATH", pathJoin(libs, "/lib"))
 +</file>
 +
 +== Check linkeo ==
 +
 +<code>
 +module purge
 +module load abinit
 +ldd $(which abinit)
 +</code>
admin/compilaciones/abinit.1770907700.txt.gz · Last modified: by bbruzzo