Install multiple versions of CUDA and cuDNN

血红的双手。 提交于 2020-12-02 03:36:41

问题


I am currently using CUDA version 7.5 with cuDNN version 5 for MatConvNet. I'd like to install version 8.0 and cuDNN version 5.1 and I want to know if there will be any conflicts if I have the environment paths pointing to both versions of CUDAand cuDNN.


回答1:


The only environment variables that matter are PATH and LD_LIBRARY_PATH. There shouldn't be any conflicts due to LD_LIBRARY_PATH since all the libs' sonames seem to be bumped properly in each version. As for PATH, the shell will execute the version from the path that appears first in the variable. So there is no point for PATH to contain both versions at the same time, you'll need to decide which version to use at a time.




回答2:


There's a good article that describes all the steps. The important ones for me were:

  • Run the CUDA install script with the --silent --toolkit --override options.
  • Set the LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64.
  • Change the /usr/local/cuda symbolic link to point back to the default version.


来源:https://stackoverflow.com/questions/41330798/install-multiple-versions-of-cuda-and-cudnn

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!