Skip to content

Commit

Permalink
caffe: use pre-CUDNN 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorBaker committed Feb 22, 2023
1 parent 92247c1 commit 291db05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/applications/science/math/caffe/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
}:

let
inherit (cudaPackages) cudatoolkit cudnn nccl;
inherit (cudaPackages) cudatoolkit nccl;
# The default for cudatoolkit 10.1 is CUDNN 8.0.5, the last version to support CUDA 10.1.
# However, this caffe does not build with CUDNN 8.x, so we use CUDNN 7.6.5 instead.
# Earlier versions of cudatoolkit use pre-8.x CUDNN, so we use the default.
cudnn = if lib.versionOlder cudatoolkit.version "10.1"
then cudaPackages.cudnn
else cudaPackages.cudnn_7_6_5;
in

assert leveldbSupport -> (leveldb != null && snappy != null);
Expand Down

0 comments on commit 291db05

Please sign in to comment.