admin:compilaciones:abinit
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| admin:compilaciones:abinit [2026/02/11 18:52] – bbruzzo | admin:compilaciones:abinit [2026/02/13 18:00] (current) – ldd check bbruzzo | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| que el bug no fue corregido en la versión release. | que el bug no fue corregido en la versión release. | ||
| - | El usuario reporta: | + | El usuario reporta:o |
| // | // | ||
| Line 84: | Line 84: | ||
| Pero también vamos a usar la documentación oficial para construir nuestra propia: | Pero también vamos a usar la documentación oficial para construir nuestra propia: | ||
| https:// | https:// | ||
| + | |||
| + | |||
| + | ==== Preparación de enviroment ==== | ||
| < | < | ||
| Line 89: | Line 92: | ||
| module load intel openmpi5 | module load intel openmpi5 | ||
| </ | </ | ||
| + | |||
| + | ABINIT tiene una interfaz de Python, elijo usar un enviroment: | ||
| + | Python: | ||
| + | |||
| + | < | ||
| + | micromamba create -n myenv python=3.10 | ||
| + | micromamba activate myenv | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Config ==== | ||
| Copiamos el archivo de configuración template con el nombre snmgt01.ac9. | Copiamos el archivo de configuración template con el nombre snmgt01.ac9. | ||
| Line 94: | Line 108: | ||
| < | < | ||
| - | La versión de HDF5 tanto del modulo hdf5 como de phdf5 me está fallando al hacer configure, voy a probar compilar una versión siguiendo la documentación de abinit. | + | === HDF5 === |
| + | |||
| + | La versión de HDF5 tanto del modulo hdf5 como de phdf5 me está fallando al hacer configure, voy a probar | ||
| + | |||
| + | === NetCDF === | ||
| + | |||
| + | Una vez que compilamos HDF5 como está indicado en la doc de ABINIT ([[hd|ver instrucciones]]) debemos proceder con NetCDF. | ||
| + | |||
| + | < | ||
| + | wget https:// | ||
| + | tar xvf netcdf-c-4.9.3.tar.gz | ||
| + | |||
| + | wget https:// | ||
| + | tar xvf netcdf-fortran-4.6.2.tar.gz | ||
| + | </ | ||
| + | |||
| + | == NetCDF-C == | ||
| + | |||
| + | < | ||
| + | ./configure --disable-dap --prefix=/ | ||
| + | CC=mpicc \ | ||
| + | LDFLAGS=-L/ | ||
| + | CPPFLAGS=-I/ | ||
| + | </ | ||
| + | |||
| + | Output: | ||
| + | |||
| + | < | ||
| + | NetCDF C Configuration Summary | ||
| + | ============================== | ||
| + | |||
| + | # General | ||
| + | ------- | ||
| + | NetCDF Version: | ||
| + | Dispatch Version: | ||
| + | Configured On: Wed Feb 11 18:21:30 -03 2026 | ||
| + | Host System: | ||
| + | Build Directory: / | ||
| + | Install Prefix: | ||
| + | |||
| + | # Compiling Options | ||
| + | ----------------- | ||
| + | C Compiler: | ||
| + | CFLAGS: -fno-strict-aliasing | ||
| + | CPPFLAGS: | ||
| + | LDFLAGS: | ||
| + | AM_CFLAGS: | ||
| + | AM_CPPFLAGS: | ||
| + | AM_LDFLAGS: | ||
| + | Shared Library: | ||
| + | Static Library: | ||
| + | Extra libraries: | ||
| + | XML Parser: | ||
| + | Legacy Macros: | ||
| + | |||
| + | # Features | ||
| + | -------- | ||
| + | Benchmarks: | ||
| + | NetCDF-2 API: yes | ||
| + | HDF4 Support: | ||
| + | HDF5 Support: | ||
| + | CDF5 Support: | ||
| + | NC-4 Parallel Support: | ||
| + | PnetCDF Support: | ||
| + | |||
| + | DAP2 Support: | ||
| + | DAP4 Support: | ||
| + | Byte-Range Support: | ||
| + | |||
| + | S3 Support: | ||
| + | S3 SDK: none | ||
| + | |||
| + | NCZarr Support: | ||
| + | NCZarr Zip Support: | ||
| + | |||
| + | Diskless Support: | ||
| + | MMap Support: | ||
| + | ERANGE Fill Support: | ||
| + | Relaxed Boundary Check: | ||
| + | |||
| + | Plugins Enabled: | ||
| + | Plugin Install Dir: / | ||
| + | Plugin Search Path: / | ||
| + | |||
| + | Quantization: | ||
| + | Logging: | ||
| + | SZIP Write Support: | ||
| + | Standard Filters: | ||
| + | ZSTD Support: | ||
| + | Parallel Filters: | ||
| + | |||
| + | </ | ||
| + | |||
| + | Make: | ||
| + | |||
| + | < | ||
| + | make -j2 | ||
| + | make install | ||
| + | </ | ||
| + | |||
| + | Disclaimer, al hacer make test fallan algunos tests: | ||
| + | |||
| + | < | ||
| + | FAIL: tst_netcdf4.sh | ||
| + | FAIL: tst_ncgen4.sh | ||
| + | FAIL: run_back_comp_tests.sh | ||
| + | FAIL: tst_nccopy4.sh | ||
| + | </ | ||
| + | |||
| + | Habría que revisar porqué fallan. | ||
| + | |||
| + | |||
| + | == NetCFD-Fortran == | ||
| + | |||
| + | |||
| + | < | ||
| + | --disable-dap | ||
| + | --prefix=/ | ||
| + | FC=mpifort \ | ||
| + | LDFLAGS=-L/ | ||
| + | FCFLAGS=-I/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | El output debería terminar con: | ||
| + | |||
| + | < | ||
| + | # NetCDF Fortran Configuration Summary | ||
| + | ============================== | ||
| + | |||
| + | # General | ||
| + | ------- | ||
| + | Library Version: | ||
| + | Configured On: Thu Feb 12 11:48:05 -03 2026 | ||
| + | Host System: | ||
| + | Build Directory: | ||
| + | Install Prefix: | ||
| + | |||
| + | # Compiling Options | ||
| + | ----------------- | ||
| + | Fortran Compiler: | ||
| + | FFLAGS: | ||
| + | LDFLAGS: | ||
| + | C Compiler: | ||
| + | CPPFLAGS: | ||
| + | CFLAGS: | ||
| + | Shared Library: | ||
| + | Static Library: | ||
| + | Extra libraries: | ||
| + | |||
| + | # Features | ||
| + | -------- | ||
| + | F03: yes | ||
| + | Dap Support: | ||
| + | Logging Support: | ||
| + | NetCDF-2 API: yes | ||
| + | NetCDF-4 API: yes | ||
| + | CDF5 Support: | ||
| + | Parallel IO: yes | ||
| + | NetCDF4 Parallel IO: yes | ||
| + | PnetCDF Parallel IO: no | ||
| + | SZIP Write Support: | ||
| + | Zstandard Support: | ||
| + | Quantize: | ||
| + | |||
| + | 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: | ||
| + | </ | ||
| + | |||
| + | |||
| + | === LIBXC === | ||
| + | |||
| + | Las implementaciones de libxc de CXXI no fueron compiladas con derivadas terceras: | ||
| + | |||
| + | < | ||
| + | +--------------------------------------------------------------+ | ||
| + | | 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, | ||
| + | +--------------------------------------------------------------+ | ||
| + | </ | ||
| + | |||
| + | Vamos a compilarlo específicamente para hacer esto dentro del directorio / | ||
| + | |||
| + | Ver [[libxc|Compilación LibXC 6.2.2]] | ||
| + | |||
| + | === Wannier90 === | ||
| + | |||
| + | Es necesario agregar un symbolic link | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | en el directorio lib/libs. | ||
| + | |||
| + | == Compilando == | ||
| + | |||
| + | Usamos el siguiente archivo de configuración: | ||
| + | |||
| + | <code snmgt01.ac9> | ||
| + | prefix="/ | ||
| + | CC=" | ||
| + | CXX=" | ||
| + | FC=" | ||
| + | with_mpi="/ | ||
| + | with_mpi_flavor=" | ||
| + | enable_mpi_gpu_aware=" | ||
| + | enable_mpi_inplace=" | ||
| + | enable_mpi_io=" | ||
| + | with_mpi_level=" | ||
| + | with_linalg_flavor=" | ||
| + | LINALG_CPPFLAGS=" | ||
| + | LINALG_FCFLAGS=" | ||
| + | LINALG_LIBS=" | ||
| + | with_fft_flavor=" | ||
| + | FFT_CPPFLAGS=" | ||
| + | FFT_FCFLAGS=" | ||
| + | FFT_LIBS=" | ||
| + | with_libxc="/ | ||
| + | # | ||
| + | # | ||
| + | with_hdf5="/ | ||
| + | # | ||
| + | with_netcdf_fortran="/ | ||
| + | with_netcdf_c="/ | ||
| + | with_wannier90="/ | ||
| + | WANNIER90_LIBS=" | ||
| + | with_python_includes=" | ||
| + | with_python_libs=" | ||
| + | PYTHON_CPPFLAGS=" | ||
| + | PYTHON_CFLAGS=" | ||
| + | PYTHON_LDFLAGS=" | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | make check | ||
| + | make test_fast | ||
| + | make test_in | ||
| + | make install | ||
| + | </ | ||
| + | |||
| + | == Módulo == | ||
| + | |||
| + | <file lua 10.6.3.lua> | ||
| + | p([==[ | ||
| + | Description | ||
| + | =========== | ||
| + | ABINIT | ||
| + | |||
| + | Version | ||
| + | ======= | ||
| + | 10.6.3 | ||
| + | |||
| + | More information | ||
| + | ================ | ||
| + | - Homepage: https:// | ||
| + | ]==]) | ||
| + | |||
| + | whatis([==[Description: | ||
| + | the optical, mechanical, vibrational, | ||
| + | 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' | ||
| + | ]==]) | ||
| + | whatis([==[Homepage: | ||
| + | whatis(" | ||
| + | |||
| + | local root = "/ | ||
| + | local libs = "/ | ||
| + | |||
| + | if not ( isloaded(" | ||
| + | load(" | ||
| + | end | ||
| + | |||
| + | if not ( isloaded(" | ||
| + | load(" | ||
| + | end | ||
| + | |||
| + | prepend_path(" | ||
| + | prepend_path(" | ||
| + | </ | ||
| + | |||
| + | == Check linkeo == | ||
| + | |||
| + | < | ||
| + | module purge | ||
| + | module load abinit | ||
| + | ldd $(which abinit) | ||
| + | </ | ||
admin/compilaciones/abinit.1770835929.txt.gz · Last modified: by bbruzzo
