Installing Futile from packages#

Ubuntu packages of Futile are built on Launchpad from the devel branch of the Futile repository and published in the BigDFT PPA. This is the quickest way to use Futile as a library without building the BigDFT suite.

Supported releases#

The PPA targets the Ubuntu LTS releases from 22.04:

  • 22.04 (jammy)

  • 24.04 (noble)

  • 26.04 (resolute)

Install#

Add the PPA once, then install the variant you need:

sudo add-apt-repository ppa:bigdft-developers/bigdft
sudo apt update
sudo apt install libfutile          # CPU: MPI, OpenMP, YAML, BLAS/LAPACK, Python

Choosing a variant#

Futile comes in mutually exclusive variants. They provide the same library and Python package, so installing one replaces the other, and packages that depend on Futile accept any of them.

Package

Use it when

Notes

libfutile

you run on CPUs (any architecture)

small dependencies, the default choice

libfutile-cuda

you want the CUDA code paths (amd64, arm64)

needs the multiverse component (CUDA runtime, several hundred MB). It also runs on machines without a GPU: CUDA is only used on demand. The CUDA of the Ubuntu archive is 11.5 (22.04), 12.0 (24.04) and 12.4 (26.04): it covers Hopper (e.g. Grace Hopper, from 24.04) but not Blackwell (e.g. GB10), which needs CUDA 12.8 or later.

sudo add-apt-repository multiverse      # only for libfutile-cuda
sudo apt install libfutile-cuda

Kokkos and oneAPI/SYCL builds are not available from the PPA: they need toolchains that are not part of the Ubuntu archive. Build them from source with the BigDFT installer, using the corresponding conditions.

Checking the installation#

pkg-config --modversion futile
python3 -c "import futile; print(futile.__file__)"

Building a program against Futile#

The library is described by the futile pkg-config module. The Fortran modules are installed in /usr/include, which pkg-config omits from its flags, so add it explicitly:

mpif90 -I/usr/include my_program.f90 $(pkg-config --libs futile) -o my_program

Other ways to get Futile#

  • From source, as part of the BigDFT suite, with the BigDFT installer (Installer.py): this gives access to every build condition.

  • Continuous-integration packages for Ubuntu 24.04 are also published on the Futile documentation site as libfutile_latest_amd64.deb and libfutile-cuda_latest_amd64.deb (install them with sudo apt install ./<file>.deb). They follow the latest successful pipeline and are mainly meant for the CI of the libraries that depend on Futile.

For the packaging itself (variants, build profiles, the Launchpad recipe and its CI check), see Debian packages and PPA.