How To Install libsimde-dev on Kali Linux
Introduction
In this tutorial we learn how to install libsimde-dev
on Kali Linux.
What is libsimde-dev
libsimde-dev is:
SIMDe provides fast, portable implementations of SIMD intrinsics on hardware which doesn’t natively support them, such as calling SSE functions on ARM. There is no performance penalty if the hardware supports the native implementation (e.g., SSE/AVX runs at full speed on x86, NEON on ARM, etc.).
This makes porting code to other architectures much easier in a few key ways:
First, instead of forcing you to rewrite everything for each architecture, SIMDe lets you get a port up and running almost effortlessly. You can then start working on switching the most performance-critical sections to native intrinsics, improving performance gradually. SIMDe lets (for example) SSE/AVX and NEON code exist side-by-side, in the same implementation.
Second, SIMDe makes it easier to write code targeting ISA extensions you don’t have convenient access to. You can run NEON code on your x86 machine without an emulator. Obviously you’ll eventually want to test on the actual hardware you’re targeting, but for most development, SIMDe can provide a much easier path.
SIMDe takes a very different approach from most other SIMD abstraction layers in that it aims to expose the entire functionality of the underlying instruction set. Instead of limiting functionality to the lowest common denominator, SIMDe tries to minimize the amount of effort required to port while still allowing you the space to optimize as needed.
The current focus is on writing complete portable implementations, though a large number of functions already have accelerated implementations using one (or more) of the following:
SIMD intrinsics from other ISA extensions (e.g., using NEON to implement
SSE). Compiler-specific vector extensions and built-ins such as __builtin_shufflevector and __builtin_convertvector Compiler auto-vectorization hints, using: OpenMP 4 SIMD Cilk Plus GCC loop-specific pragmas clang pragma loop hint directives
There are three methods to install libsimde-dev
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libsimde-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 libsimde-dev
using apt-get
by running the following command:
sudo apt-get -y install libsimde-dev
Install libsimde-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libsimde-dev
using apt
by running the following command:
sudo apt -y install libsimde-dev
Install libsimde-dev Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libsimde-dev
using aptitude
by running the following command:
sudo aptitude -y install libsimde-dev
How To Uninstall libsimde-dev on Kali Linux
To uninstall only the libsimde-dev
package we can use the following command:
sudo apt-get remove libsimde-dev
Uninstall libsimde-dev And Its Dependencies
To uninstall libsimde-dev
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libsimde-dev
Remove libsimde-dev Configurations and Data
To remove libsimde-dev
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libsimde-dev
Remove libsimde-dev configuration, data, and all of its dependencies
We can use the following command to remove libsimde-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsimde-dev
Dependencies
libsimde-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libsimde-dev
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.