Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 24 lines 937 B view raw
1<section xmlns="http://docbook.org/ns/docbook" 2 xmlns:xlink="http://www.w3.org/1999/xlink" 3 xml:id="dlib"> 4 <title>DLib</title> 5 6 <para> 7 <link xlink:href="http://dlib.net/">DLib</link> is a modern, C++-based toolkit which provides several machine learning algorithms. 8 </para> 9 10 <section xml:id="compiling-without-avx-support"> 11 <title>Compiling without AVX support</title> 12 13 <para> 14 Especially older CPUs don't support <link xlink:href="https://en.wikipedia.org/wiki/Advanced_Vector_Extensions">AVX</link> (<abbrev>Advanced Vector Extensions</abbrev>) instructions that are used by DLib to optimize their algorithms. 15 </para> 16 17 <para> 18 On the affected hardware errors like <literal>Illegal instruction</literal> will occur. In those cases AVX support needs to be disabled: 19<programlisting>self: super: { 20 dlib = super.dlib.override { avxSupport = false; }; 21}</programlisting> 22 </para> 23 </section> 24</section>