cntk: fix build without CUDA

This commit is contained in:
Nikolay Amiantov 2018-02-25 22:49:59 +03:00
parent 0e086dd1c1
commit 7f1b8d744f

View File

@ -42,10 +42,10 @@ in stdenv.mkDerivation rec {
"--with-boost=${boost.dev}"
"--with-protobuf=${protobuf}"
"--with-mpi=${openmpi}"
] ++ lib.optionals cudaSupport [
"--cuda=yes"
"--cuda=${if cudaSupport then "yes" else "no"}"
# FIXME
"--asgd=no"
] ++ lib.optionals cudaSupport [
"--with-cuda=${cudatoolkit}"
"--with-gdk-include=${cudatoolkit}/include"
"--with-gdk-nvml-lib=${nvidia_x11}/lib"