diff options
author | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2016-05-26 00:19:42 +0300 |
---|---|---|
committer | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2016-05-26 00:19:42 +0300 |
commit | 844d3fcb7550f9bac799c10f4c1d2956cc3b30e9 (patch) | |
tree | 2d4c56ecb0712106f4ce869dff14ecaa909d3be4 | |
parent | 17e7596a074738b13a070f4c1e088a6ac5e19d3f (diff) | |
parent | e47070ad64ab615167a14f254fe0e2d1796f8160 (diff) | |
download | nixlib-844d3fcb7550f9bac799c10f4c1d2956cc3b30e9.tar nixlib-844d3fcb7550f9bac799c10f4c1d2956cc3b30e9.tar.gz nixlib-844d3fcb7550f9bac799c10f4c1d2956cc3b30e9.tar.bz2 nixlib-844d3fcb7550f9bac799c10f4c1d2956cc3b30e9.tar.lz nixlib-844d3fcb7550f9bac799c10f4c1d2956cc3b30e9.tar.xz nixlib-844d3fcb7550f9bac799c10f4c1d2956cc3b30e9.tar.zst nixlib-844d3fcb7550f9bac799c10f4c1d2956cc3b30e9.zip |
Merge pull request #15664 from wavewave/cudnn
cudnn: init at 4.0
-rw-r--r-- | pkgs/development/libraries/science/math/cudnn/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/libraries/science/math/cudnn/default.nix b/pkgs/development/libraries/science/math/cudnn/default.nix new file mode 100644 index 000000000000..80975c8dc7b3 --- /dev/null +++ b/pkgs/development/libraries/science/math/cudnn/default.nix @@ -0,0 +1,38 @@ +{ stdenv, requireFile }: + +stdenv.mkDerivation rec { + version = "4.0"; + + name = "cudnn-${version}"; + + src = requireFile rec { + name = "cudnn-7.0-linux-x64-v${version}-prod.tgz"; + message = '' + This nix expression requires that ${name} is + already part of the store. Register yourself to NVIDIA Accelerated Computing Developer Program + and download cuDNN library at https://developer.nvidia.com/cudnn, and store it to the nix store with nix-store --add-fixed sha256 <FILE>. + ''; + sha256 = "0zgr6qdbc29qw6sikhrh6diwwz7150rqc8a49f2qf37j2rvyyr2f"; + + }; + + phases = "unpackPhase installPhase fixupPhase"; + + installPhase = '' + mkdir -p $out + cp -a include $out/include + cp -a lib64 $out/lib64 + ''; + + # all binaries are already stripped + #dontStrip = true; + + # we did this in prefixup already + #dontPatchELF = true; + + meta = { + description = "NVIDIA CUDA Deep Neural Network library (cuDNN)"; + homepage = "https://developer.nvidia.com/cudnn"; + license = stdenv.lib.licenses.unfree; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99fb033c7fcb..3404dc5a1ff4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1201,6 +1201,8 @@ in cudatoolkit = self.cudatoolkit7; + cudnn = callPackage ../development/libraries/science/math/cudnn/default.nix {}; + curlFull = self.curl.override { idnSupport = true; ldapSupport = true; |