Change CUDA / Cudnn version without root privileges
On a machine that is used publicly, one can’t update its cuda or cudnn version arbitrarily. Here is a way you can use the version you need.
Without root privileges, you can do this to make your code run well:
Below is the example of cudnn:(Cuda can be done in the same way.)
Because the essence of cuda or cudnn is dynamic link library, so all you need do is to make your machine know where to link it properly.
You can download and extract the proper version of cuda or cudnn to your ~
directory (or anywhere you like).
Then append these to your ~/.bashrc
(or something like .zshrc
etc.)
1 | export PATH=/usr/local/cuda/bin:$PATH |
Then source .bashrc
will make it work perfectly.
本文标题:Change CUDA / Cudnn version without root privileges
文章作者:Han Yang
发布时间:2017-12-10
最后更新:2022-09-06
原始链接:https://archived.yanghan.life/2017/12/10/Change-CUDA-Cudnn-version-without-root-privileges/
版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!
分享