在服务器端,cudnn 7.0和cuda 9.1位于/usr/local/cuda。我需要使用detectron,但它不支持cuda 9.1,所以我需要安装cuda 8.0。
我尝试安装cuda8.0和cudnn,第二个答案是在/ this /xx/caffe2。
然后构建caffe2,但它再次使用/usr/local/cuda处的cuda。
那么有没有办法在/home/xx/caffe2中使用cuda呢?
发布于 2018-09-12 02:38:43
您需要在运行安装时指定环境变量:
您可以在存储库中的setup.py文件中找到环境变量的完整描述。
例如:
CUDA_HOME=/home/xxx/cuda-9.1 python setup.py install
https://stackoverflow.com/questions/51406124
复制相似问题