Commit Graph
13 Commits
Author SHA1 Message Date
Daniël de Kok 7475b12169 cudnn_cudatoolkit: accept hash attribute for SRI hashes 2021-04-18 10:53:22 +02:00
Dennis Gosnell e3c1c3b35b cudnnPackages: Remove statically linked .a files. 2021-03-10 21:30:51 +09:00
Daniël de Kok 8dad19aebe cudnn_cudatookit_11: add $ORIGIN/ to library RPATHs
Starting with version 8, CuDNN consists of multiple libraries.
Libraries (except libcudnn.so) are dlopen()ed on demand.

Since the CuDNN library path itself was not added to the rpath of the
libraries, use of CuDNN often fails with the following error:

Could not load library libcudnn_cnn_train.so.8.
Error: libcudnn_ops_train.so.8: cannot open shared object file: No such file or directory
Please make sure libcudnn_cnn_train.so.8 is in your library path!

This change fixes this by adding $ORIGIN/ to the rpath of all CuDNN
libraries.
2021-02-14 11:35:58 +01:00
Daniël de Kok 84786ebecd cudnn_cudatoolkit_11: remove libcudnn_cnn_infer.so exception
With the update to CuDNN 8.1, we do not get the "maximum file size
exceeded" error anymore when patchelf'ing libcudnn_cnn_infer.so. This
change removes the exception for that library.
2021-02-14 11:15:02 +01:00
Ben Siraphob 66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
Matthew Bauer ed950bb104 cudnn: skip libcudnn_cnn_infer.so, instead of removing
This is needed to build the CUDNN samples, so we should make sure it
winds up in $out/lib. The library is too big to support patchelf, so
we need to skip it. Most programs will still get the opengl path
because it also links to other libraries.
2020-08-28 15:16:15 -05:00
Matthew Bauer 164f8024e9 cudatoolkit: init v11.0.3 2020-08-19 13:34:52 -05:00
Joachim Fasting bad07dfac5 tree-wide: replace uses of splitString "." with lib.versions
Quoting from the splitString docstring:

   NOTE: this function is not performant and should never be used.

This replaces trivial uses of splitString for splitting version
strings with the (potentially builtin) splitVersion.
2019-09-26 17:42:49 +02:00
volth 08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
Ambroz Bizjak 28a0918916 Add driver library path to some packages to find CUDA libraries.
This is to avoid relying on LD_LIBRARY_PATH for finding the CUDA driver libraries.
2019-05-22 18:34:09 +02:00
Luke Adams eba8679bc5 cudnn*_cudatoolkit*: use public NVIDIA mirror (#31551)
* cudnn*_cudatoolkit*: use NVIDIA mirror instead of requireFile

* cudnn_cudatoolkit7: update hash since public mirror is different
2018-07-18 03:21:57 +00:00
Anders Kaseorg 6f073154da Give working advice for running nix-prefetch-url
nix-prefetch-url file://… requires a full path.  Suggest an invocation
that will provide one.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-03-04 17:28:36 +00:00
Nikolay Amiantov 6309e5fa01 cudnn: refactor to use shared derivation
Also return 8.0-6.0 version for TensorFlow.
2017-10-19 12:47:30 +03:00