Installation Win10 + VS2015 + cuda10.1

  Recently TensorRT learning, good examples of tests on GTX1080 graphics unsuccessful life and death on the RTX2070, cuda9.0 analysis may be too old, does not support this version of the Turing TensorRT series of graphics cards. So be prepared to upgrade cuda10.1, has been an error during the installation fails, most of the Internet is about VS2017 + cuda10, and after repeated attempts to manage the installation is complete VS2015 + cuda10.1, record the installation process.

1, first install Visual Studio integration

  Direct installation, the first encountered is the failure to install Visual Studio integration, leading to the end of the installation process, some of the deleted found on the Internet and stop, has been unable to solve, but it is uncertain whether the factors that ultimately successful, wrote about here:

  1. Stop "Task Manager -> Services -> Description" in the "NVIDIA" starts with four service;
  2. Delete "C: \ Program Files" path "NVIDIA" starts with two folders, it may cause some occupied can not be deleted, delete if this has the effect of uncertainty;
  3. Restart and then check to see if you can delete (there are also claims, delete in safe mode, boot again under normal circumstances, not tried).

  After I completed the above steps still can not be installed properly, the Internet to find the [Software Installation] failure + win10 + VS2015 + CUDA8.0 CUDAVisualStudioIntegration not find + CUDA installation methods.
  Therefore, when the extraction is complete to start the installation, in: find "CUDAVisualStudioIntegration" file "C \ Users \ username \ AppData \ Local \ Temp \ CUDA " directory folder:

  1. The files in the "CUDAVisualStudioIntegration \ extras \ visual_studio_integration \ MSBuildExtensions" copy directly to the "C: \ Program Files (x86) \ MSBuild \ Microsoft.Cpp \ v4.0 \ V140 \ BuildCustomizations" folder;
  2. The "CUDAVisualStudioIntegration \ extras \ visual_studio_integration" in "CudaProjectVsWizards" folder to "C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions" in the (specific location see the option to install their own time, the original bloggers link installed in the D drive, I installed in the C drive X86 route);
  3. Open CMD, and move to the "Microsoft Visual Studio 14.0 \ Common7 \ IDE" path, perform the "devenv / setup" command (when I run have been stuck like, wait a period of time I'll just shut up and do not know Kai no effect).

2, Custom Installation cuda10.1

  After the manual installation is complete Visual Studio integration, you can cancel the project when cuda install, but when run for Nsight Systems reported a problem can not be installed, and later tests found continue to find a solution, to find win10 under CUDA and CUDNN installation (ultra-detailed )! Effective pro-test! Solution, which requires the installation of only installation Development, Runtime, Documentation, Samples 4 items installed successfully.
  And then to other projects in addition to CUDA large items outside the installation, and the installation was successful. But before excluded Visual Studio integration, Nsight Systems, Nsight Compute still can not install.

3, the rest of the sudden good !!! Σ (゚ Д ゚ Techno) Techno

  After completing the installation in addition to other Visual Studio integration, Nsight Systems, Nsight Compute, restart, clean up the environment variables, run the code, you can run. Ready to write a description posted, showing the case of a failure, actually reported that the installation was successful!
  When the installation process is to select only the Visual Studio integration, Nsight Systems, Nsight Compute3 term (I am one installed, in order to find negative examples). Note the time of installation of the work area on your computer to save their attention, sometimes suddenly forced to restart ...

in conclusion

  • To clean up the environment variables, registry, the old version of the file, and restart;
  • To see whether the success of the installation;
  • If unsuccessful, to manually install the Visual Studio integration;
  • Mounting again excluded Visual Studio integration, Nsight Systems, Nsight Compute, below;
  • After the installation is complete restart, install Visual Studio integration again, Nsight Systems, Nsight Compute.

Cuda installation interface
  

  

  

  

Published 24 original articles · won praise 8 · views 20000 +

Guess you like

Origin blog.csdn.net/yangjf91/article/details/90753293
Recommended