问题
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 --overrideoptions. - Set the
LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64. - Change the
/usr/local/cudasymbolic link to point back to the default version.
来源:https://stackoverflow.com/questions/41330798/install-multiple-versions-of-cuda-and-cudnn