How To Install libxsimd-dev on Debian 12

Learn how to install libxsimd-dev on Debian 12 with this tutorial. libxsimd-dev is C++ wrappers for SIMD intrinsics

Introduction

In this tutorial we learn how to install libxsimd-dev on Debian 12.

What is libxsimd-dev

libxsimd-dev is:

SIMD (Single Instruction, Multiple Data) is a feature of microprocessors that has been available for many years. SIMD instructions perform a single operation on a batch of values at once, and thus provide a way to significantly accelerate code execution. However, these instructions differ between microprocessor vendors and compilers.

xsimd provides a unified means for using these features for library authors. Namely, it enables manipulation of batches of numbers with the same arithmetic operators as for single values. It also provides accelerated implementation of common mathematical functions operating on batches.

This package provides the header-only library.

There are three methods to install libxsimd-dev on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libxsimd-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libxsimd-dev using apt-get by running the following command:

sudo apt-get -y install libxsimd-dev

Install libxsimd-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libxsimd-dev using apt by running the following command:

sudo apt -y install libxsimd-dev

Install libxsimd-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libxsimd-dev using aptitude by running the following command:

sudo aptitude -y install libxsimd-dev

How To Uninstall libxsimd-dev on Debian 12

To uninstall only the libxsimd-dev package we can use the following command:

sudo apt-get remove libxsimd-dev

Uninstall libxsimd-dev And Its Dependencies

To uninstall libxsimd-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libxsimd-dev

Remove libxsimd-dev Configurations and Data

To remove libxsimd-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libxsimd-dev

Remove libxsimd-dev configuration, data, and all of its dependencies

We can use the following command to remove libxsimd-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libxsimd-dev

Dependencies

libxsimd-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libxsimd-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.