AMD LibM is a software library containing a collection of basic math functions optimized for x86-64 processor-based machines. It provides many routines from the list of standard C99 math functions.

AMD LibM is a C library, which users can link in to their applications to replace compiler-provided math functions. Generally, programmers access basic math functions through their compiler, but those who want better accuracy or performance than their compiler’s math functions can use this library to help improve their applications.

Highlights of AMD LibM 3.8 (in AOCL 3.1)

  • MonteCarlo support
    • exp2, log2 (scalar double precision)
    • exp2f, log2f (scalar single precision)
    • vrd2_exp2, vrd4_exp2 – 128/256 vector version
    • vrs4_exp2f, vrs8_exp2f – 128/256 vector single precision
    • vrs4_log2f, vrs8_log2f
    • vrd2_log2, vrd4_log2
  • Support of WRF 4.2.1 (Log10f scalar and vector functions)
  • Dynamic dispatcher updates
  • Updates in GLibc libmvec compat layer library
  • Optimized Inverse Trigonometric variants
    • asinf (Scalar), acosf (Scalar), atan (Scalar and Vector)

Highlights of AMD LibM 3.7 (in AOCL 3.0)

  • Improved performance of Trigonometric scalar and vector variants of sin, cos, and tan
  • Improved performance of Hyperbolic (single precision) scalar and vector variants of cosh and tanh
  • Bug fixes in vector (double precision) log and exp
  • Now source available at https://github.com/amd/aocl-libm-ose

The package containing AMD LibM binaries, examples and documentation are available in the Downloads section below.

Source code for AMD LibM will be available shortly on GitHub https://github.com/amd/aocl-libm-ose.

Refer here for prior versions of AMD LibM documentation and downloads.

Download:

File Name Version Size Launch Date OS Bitness Description
Binary Packages Compiled with AOCC 3.2

File Name

Version

3.1

Size

1.17 MB

Launch Date

12/10/2021

OS

Ubuntu, SLES, CentOS, RHEL

Bitness

64-bit

Description

AOCC compiled AMD LibM library binary package with example code. sha256 Checksum: fed3a1ca4977d1045a0e45eaf450fc0efdc8639f129198f75164227d8134f14c
Binary Packages Compiled with GCC 11.1

File Name

Version

3.1

Size

1.22 MB

Launch Date

12/10/2021

OS

Ubuntu, SLES, CentOS, RHEL

Bitness

64-bit

Description

GCC compiled AMD LibM library binary package with example code. sha256 Checksum: 5486d88301a4be098b46df7f79f9420c48f07b15f1bb5c1f66df97a87bb39568