dlib: support sse4 instructions

wip/yesman
Daniel Nagy 3 years ago
parent 04ac9dcd31
commit b6ef90c6c4
No known key found for this signature in database
GPG Key ID: 1B8E8DCB576FB671
  1. 2
      pkgs/development/libraries/dlib/default.nix

@ -2,6 +2,7 @@
, guiSupport ? false, libX11
# see http://dlib.net/compile.html
, sse4Support ? stdenv.hostPlatform.sse4_1Support
, avxSupport ? stdenv.hostPlatform.avxSupport
, cudaSupport ? true
}:
@ -23,6 +24,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DUSE_DLIB_USE_CUDA=${if cudaSupport then "1" else "0"}"
"-DUSE_SSE4_INSTRUCTIONS=${if sse4Support then "yes" else "no"}"
"-DUSE_AVX_INSTRUCTIONS=${if avxSupport then "yes" else "no"}" ];
nativeBuildInputs = [ cmake pkg-config ];

Loading…
Cancel
Save