Skip to content

Commit

Permalink
cntk: fix build without CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
abbradar committed Feb 25, 2018
1 parent 0e086dd commit 7f1b8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/applications/science/math/cntk/default.nix
Expand Up @@ -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"
Expand Down

0 comments on commit 7f1b8d7

Please sign in to comment.