nixpkgs/pkgs/development/libraries/science/math/cudnn/default.nix

54 lines
1.7 KiB
Nix
Raw Normal View History

{ callPackage, cudatoolkit_7, cudatoolkit_7_5, cudatoolkit_8, cudatoolkit_9_0, cudatoolkit_9 }:
let
generic = args: callPackage (import ./generic.nix (removeAttrs args ["cudatoolkit"])) {
inherit (args) cudatoolkit;
};
in
{
2018-05-31 08:12:59 +01:00
cudnn_cudatoolkit_7 = generic rec {
# Old URL is v4 instead of v4.0 for some reason...
version = "4";
2018-05-31 08:12:59 +01:00
cudatoolkit = cudatoolkit_7;
srcName = "cudnn-${cudatoolkit.majorVersion}-linux-x64-v4.0-prod.tgz";
sha256 = "01a4v5j4v9n2xjqcc4m28c3m67qrvsx87npvy7zhx7w8smiif2fd";
};
2018-05-31 08:12:59 +01:00
cudnn_cudatoolkit_7_5 = generic rec {
version = "6.0";
2018-05-31 08:12:59 +01:00
cudatoolkit = cudatoolkit_7_5;
srcName = "cudnn-${cudatoolkit.majorVersion}-linux-x64-v${version}.tgz";
sha256 = "0b68hv8pqcvh7z8xlgm4cxr9rfbjs0yvg1xj2n5ap4az1h3lp3an";
};
2018-05-31 08:12:59 +01:00
cudnn6_cudatoolkit_8 = generic rec {
version = "6.0";
2018-05-31 08:12:59 +01:00
cudatoolkit = cudatoolkit_8;
srcName = "cudnn-${cudatoolkit.majorVersion}-linux-x64-v${version}.tgz";
sha256 = "173zpgrk55ri8if7s5yngsc89ajd6hz4pss4cdxlv6lcyh5122cv";
};
2018-05-31 08:12:59 +01:00
cudnn_cudatoolkit_8 = generic rec {
2017-12-07 23:13:07 +00:00
version = "7.0.5";
2018-05-31 08:12:59 +01:00
cudatoolkit = cudatoolkit_8;
srcName = "cudnn-${cudatoolkit.majorVersion}-linux-x64-v7.tgz";
2017-12-07 23:13:07 +00:00
sha256 = "9e0b31735918fe33a79c4b3e612143d33f48f61c095a3b993023cdab46f6d66e";
};
cudnn_cudatoolkit_9_0 = generic rec {
version = "7.0.5";
cudatoolkit = cudatoolkit_9_0;
srcName = "cudnn-${cudatoolkit.majorVersion}-linux-x64-v7.tgz";
sha256 = "03mbv4m5lhwnc181xz8li067pjzzhxqbxgnrfc68dffm8xj0fghs";
};
2018-05-31 08:12:59 +01:00
cudnn_cudatoolkit_9 = generic rec {
2017-12-07 23:13:07 +00:00
version = "7.0.5";
2018-05-31 08:12:59 +01:00
cudatoolkit = cudatoolkit_9;
srcName = "cudnn-${cudatoolkit.majorVersion}-linux-x64-v7.tgz";
2018-02-25 17:03:26 +00:00
sha256 = "1rfmdd2v47p83fm3sfyvik31gci0q17qs6kjng6mvcsd6akmvb8y";
};
}