Home Explore Blog CI



nixpkgs

1st chunk of `doc/packages/dlib.section.md`
171a180d09c2012f7f1590d99ffb4f3d72bd91818422319c000000010000024d
# DLib {#dlib}

[DLib](http://dlib.net/) is a modern, C++\-based toolkit which provides several machine learning algorithms.

## Compiling without AVX support {#compiling-without-avx-support}

Especially older CPUs don't support [AVX](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions) (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms.

On the affected hardware errors like `Illegal instruction` will occur. In those cases AVX support needs to be disabled:

```nix
self: super: { dlib = super.dlib.override { avxSupport = false; }; }
```

Title: DLib and Compiling Without AVX Support
Summary
DLib is a C++ toolkit that provides machine learning algorithms. Some older CPUs may not support AVX instructions, which are used by DLib for optimization. If errors like 'Illegal instruction' occur, AVX support needs to be disabled by overriding the dlib package.