Install CUDA 8 and CUDA 9 in windows
There is only one requirement, that one needs to satisfy in order to install multiple CUDA on the same machine. You need to have the latest Nvidia drivers, that is required by the highest CUDA that you’re going to install.
Environment prerequisites
Nvidia latest driver and at least 2 different CUDA libraries.
Other settings
Set the environment variables.
Create a script that changes the PATH
variable for fast switching.Then the shell will execute the CUDA version you have set in the path.