caffe: don't use CUDA by default

CUDA currently requires old GCC. Also, this way Caffe is usable without proprietary blobs.
This commit is contained in:
Nikolay Amiantov 2017-09-03 17:47:53 +03:00
parent 5a2bb4c992
commit f1f944f23b

View file

@ -18457,7 +18457,7 @@ with pkgs;
### SCIENCE / MATH
caffe = callPackage ../applications/science/math/caffe rec {
cudaSupport = config.caffe.cudaSupport or config.cudaSupport or true;
cudaSupport = config.caffe.cudaSupport or config.cudaSupport or false;
# CUDA 8 doesn't support GCC 6.
stdenv = if cudaSupport then overrideCC pkgs.stdenv gcc5 else pkgs.stdenv;
};