How To Install libxsmm on Rocky Linux 8

In this tutorial we learn how to install libxsmm on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libxsmm.

Install libxsmm on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove libxsmm

libxsmm Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/d9d575ac18c61d57f7a12ed389c27e5acd43d3
/usr/lib/.build-id/34
/usr/lib/.build-id/34/f566539205a8589cbbbc46049c2dc39127b1dc
/usr/lib/.build-id/35
/usr/lib/.build-id/35/1992495205b8abd05c0e87c06c4b3abd6a91e6
/usr/lib/.build-id/53
/usr/lib/.build-id/53/d839c8075bbbc009b63c5e15874e4fa5af17f1
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/9fdb71b87b17d39fb87d0ee9bee5e2082e3061
/usr/lib64/libxsmm.so.1
/usr/lib64/libxsmm.so.1.16.0
/usr/lib64/libxsmmext.so.1
/usr/lib64/libxsmmext.so.1.16.0
/usr/lib64/libxsmmf.so.1
/usr/lib64/libxsmmf.so.1.16.0
/usr/lib64/libxsmmgen.so.1
/usr/lib64/libxsmmgen.so.1.16.0
/usr/lib64/libxsmmnoblas.so.1
/usr/lib64/libxsmmnoblas.so.1.16.0
/usr/share/licenses/libxsmm
/usr/share/licenses/libxsmm/LICENSE.md

References

Summary

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