无需根访问权限即可为Theano安装cuDNN [英] Installing cuDNN for Theano without root access

查看:173
本文介绍了无需根访问权限即可为Theano安装cuDNN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在没有root访问权限的情况下在本地安装 cuDNN 吗?

Can I install cuDNN locally without root access ?

我无权访问正在使用的linux计算机(发行版为openSuse),但是我已经安装了CUDA 7.5.

I don't have root access to a linux machine I am using (the distro is openSuse), but I have CUDA 7.5 already installed.

我正在使用Theano,我需要cuDNN来提高GPU上的运算速度.

I am using Theano and I need cuDNN to improve the speed of the operations on the GPU.

我从Nvidia下载了cudnn-7.5-linux-x64-v5.1,按照说明,我需要将CuDNN存档内容复制到CUDA安装文件夹,即(cuda/lib64/和cuda/include/).但这需要我具有root用户访问权限.

I downloaded cudnn-7.5-linux-x64-v5.1 from Nvidia and as per the instructions I need to copy the CuDNN archive content to CUDA installation folder, i.e. (cuda/lib64/ and cuda/include/). But that would require me to have root access.

是否可以在本地提取cudnn存档并为theano提供cudnn库的路径?

Is it possible that I extract the cudnn archive locally and provide theano with the path to the cudnn library ?

推荐答案

您可以将整个CUDA SDK复制到您的家中,并通过在您的目录中添加/修改这些环境变量来告诉Theano和其他人,他们应该使用CUDA的本地副本. ~/.bashrc

You could copy the entire CUDA SDK to your home and tell Theano and others that they should use your local copy of CUDA by adding/modifying these environment variables in your ~/.bashrc

export CUDA_ROOT=~/program/cuda-7.5
export CUDA_HOME=~/program/cuda-7.5
export PATH=${CUDA_HOME}/bin:$PATH
export LD_LIBRARY_PATH=/usr/lib64/nvidia:${CUDA_HOME}/lib64:$LD_LIBRARY_PATH

然后,您只需将cuDNN提取到本地CUDA SDK目录~/program/cuda-7.5/

Then you could simply extract cuDNN to your local CUDA SDK dir ~/program/cuda-7.5/

这篇关于无需根访问权限即可为Theano安装cuDNN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆