GnuMP

Guidance last updated: 9 October 2026

GnuMP is a portable library written in C for arbitrary precision arithmetic on integers, rational numbers, and floating-point numbers. It aims to provide the fastest possible arithmetic for all applications that need higher precision than is directly supported by the basic C types.

Documentation: https://gmplib.org/manual/

Usage

After connecting to Stanage (see Establishing a SSH connection), start an interactive session:

salloc

GnuMP can be activated as follows:

module load GMP/6.3.0-GCCcore-15.2.0
module load GMP/6.3.0-GCCcore-14.3.0
module load GMP/6.3.0-GCCcore-14.2.0
module load GMP/6.3.0-GCCcore-13.3.0
module load GMP/6.3.0-GCCcore-13.2.0
module load GMP/6.2.1-GCCcore-12.3.0
module load GMP/6.2.1-GCCcore-12.2.0

Installation notes

GMP was installed using Easybuild, build details can be found in $EBROOTGMP/easybuild with a given module loaded.

Direct dependencies for latest version of GMP