mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 15:41:40 +00:00
cntk: fix build without CUDA
This commit is contained in:
parent
0e086dd1c1
commit
7f1b8d744f
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue