Merge pull request #61019 from volth/gcc.arch-amd
platform.gcc.arch: support for AMD CPUs
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
, guiSupport ? false, libX11
|
||||
|
||||
# see http://dlib.net/compile.html
|
||||
, avxSupport ? true
|
||||
, avxSupport ? stdenv.hostPlatform.avxSupport
|
||||
, cudaSupport ? true
|
||||
}:
|
||||
|
||||
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||
rm -rf dlib/external
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
cmakeFlags = [
|
||||
"-DUSE_DLIB_USE_CUDA=${if cudaSupport then "1" else "0"}"
|
||||
"-DUSE_AVX_INSTRUCTIONS=${if avxSupport then "yes" else "no"}" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user