Using MPFR on SeaWulf

The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR has continuously been supported by the INRIA and the current main authors come from the Caramba and AriC project-teams at Loria (Nancy, France) and LIP (Lyon, France) respectively; see more on the credit page. MPFR is based on the GMP multiple-precision library.

The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit significand).

Audience: Faculty, Guests, Researchers and Staff

This KB Article References:
This Information is Intended for: Faculty, Guests, Researchers, Staff
Last Updated: October 13, 2017

Current Version

The current version of MPFR runnning on SeaWulf is 3.1.5.  Since MPFR is based on the GMP library, you will need to load the GMP module as well using these commands:

module load mpfr/3.1.5
module load gmp/6.1.2


Compiling with MPFR

When compiling a program with MPFR, you will have to link it with the MPFR and GMP libraries:

gcc -o my_prog my_prog.c -lmpfr -lgmp


For more information, visit:

Additional Information

There are no additional resources available for this article.

Getting Help

The Division of Information Technology provides support on all of our services. If you require assistance please submit a support ticket through the IT Service Management system.

Submit A Ticket

Supported By