Interface to LIBINT by E. Valeev

Code author: Edward F. Valeev and Justin T. Fermann

Section author: Lori A. Burns

https://img.shields.io/badge/home-libint-5077AB.svg
https://img.shields.io/badge/docs-latest-5077AB.svg

PSI4, particularly libmints utterly relies upon the LIBINT library developed by E. Valeev from early roots by J. Fermann. Libint requires no additional licence, downloads, or configuration. Conversely, PSI4 cannot build without libint.

Installation

Binary

  • https://anaconda.org/psi4/libint/badges/version.svg
  • libint is available as a conda package for Linux and macOS.

  • If using the PSI4 binary, libint has already been installed alongside.

  • If using PSI4 built from source, and anaconda or miniconda has already been installed (instructions at Quick Installation), libint can be obtained through conda install libint. Then, hint its location with CMAKE_PREFIX_PATH, and rebuild PSI4 to detect libint and activate dependent code.

  • To remove a conda installation, conda remove libint.

Source

  • https://img.shields.io/github/tag/psi4/libint.svg?maxAge=2592000
  • If using PSI4 built from source and you want libint built from from source also, let the build system fetch and build it and activate dependent code.

How to configure libint for building Psi4

Role and Dependencies

  • Role — In PSI4, libint is a library that provides essential two-body molecular integrals over Gaussian functions.
  • Downstream Dependencies — PSI4 \(\Leftarrow\) libint
  • Upstream Dependencies — libint \(\Leftarrow\) None

CMake Variables

  • CMAKE_PREFIX_PATH — CMake list variable to specify where pre-built dependencies can be found. For libint, set to an installation directory containing include/libint/libint.h
  • libint_DIR — CMake variable to specify where pre-built libint can be found. Set to installation directory containing share/cmake/libint/libintConfig.cmake
  • CMAKE_DISABLE_FIND_PACKAGE_libint — CMake variable to force internal build of libint instead of detecting pre-built

Examples

  1. Build bundled
>>> cmake
  1. Link against pre-built
>>> cmake -DCMAKE_PREFIX_PATH=/path/to/libint/root
>>> cmake -Dlibint_DIR=/path/to/libint/configdir
  1. Build bundled despite pre-built being detectable
>>> cmake -DCMAKE_PREFIX_PATH=/path/to/unwanted/libint/root/and/wanted/other/dependencies/root -DCMAKE_DISABLE_FIND_PACKAGE_libint=ON