How To Install libxsmm on AlmaLinux 8

In this tutorial we learn how to install libxsmm in AlmaLinux 8. libxsmm is Small dense or sparse matrix multiplications and convolutions for x86_64

Introduction

In this tutorial we learn how to install libxsmm on AlmaLinux 8.

What is libxsmm

LIBXSMM is a library for small dense and small sparse matrix-matrix multiplications, as well as for deep learning primitives such as small convolutions targeting Intel Architecture (x86). The library generates code for the following instruction set extensions SSE, Intel AVX, Intel AVX2, IMCI (KNCni) for Intel Xeon Phi coprocessors (“KNC”), and Intel AVX‑512 as found in the Intel Xeon Phi processor family (“KNL”) and future Intel Xeon processors. Small convolutions are currently only optimized for Intel AVX‑512. Historically the library was solely targeting the Intel Many Integrated Core Architecture “MIC”) using intrinsic functions. Currently, optimized assembly code targets all aforementioned instruction set extensions (static code generation), and Just‑In‑Time (JIT) code generation targets Intel AVX and beyond.

We can use yum or dnf to install libxsmm on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libxsmm.

Install libxsmm on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libxsmm using dnf by running the following command:

sudo dnf -y install libxsmm

Install libxsmm on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libxsmm using yum by running the following command:

sudo yum -y install libxsmm

How To Uninstall libxsmm on AlmaLinux 8

To uninstall only the libxsmm package we can use the following command:

sudo dnf remove libxsmm

References

Summary

In this tutorial we learn how to install libxsmm on AlmaLinux 8 using yum and dnf.