In my case I have to use CUDA 9.0 and cNN v 7.0 to be comparable with Tensorflow library.
I could say that I experienced absolutely the same. The installation was an awful experience which continued even more - 3 days of frustrations, installing, uninstalling and restarting. The instruction provided are not clear enough and in version “http://developer.download.nvidia.com/compute/cuda/9.0/Prod/docs/sidebar/CUDA_Installation_Guide_Windows.pdf” nowhere is said that the user have to use Nsight Visual Studio just to install the program properly.
In addition I have to read and compare the latest instructions to the instructions for v9.0 just not to miss some point. I would be great if we see some support from NVIDIA team here!
I can confirm that CUDA 9.1.85 fails to install due to the Visual Studio Integration step failing. I’m using Visual Studio 15.6.3. Shame on NVIDIA for releasing CUDA 9.1 for Windows without addressing the install issues with Visual Studio. Obviously, NVIDIA is not listening to the developer community since this problem has been around for over 6 months.
After doing a fresh install of Windows 10 on my machine today, I installed NVIDIA Drivers (397.31) and then installed Visual Studio Community 2017. But when I try installing CUDA 9.1, every time the installer fails, showing a list of components that could not be installed.
My research on this as of now is the following:
After reading this page, I found out about unticking VS integrations and installing CUDA. I did that and it worked. Is it going to be a problem in the future to use the GPU optimally if VS integrations is unticked while installing CUDA ?
Theoretically it should, as CUDA would need VS compilers. Could anybody comment on this?
Also, I read something about NSight Visual Studio in kalevnikola’s comment on this page.
Is it compulsory to use NSight? Earlier it wasn’t (see How to install and run GPU enabled TensorFlow on Windows : this guy was trying to use CUDA 8.0, and the CUDA installer worked fine for him without Visual Studio or NSight or anything else).
This is literally doesn’t make any sense. I’ve tried almost everything to no avail. If I uncheck Visual studio I can install it fine. BUT I NEED VISUAL STUDIO INTEGRATION.
What the absolute hell do I do? Every time I install it gives me “NVIDIA Installer Failed” with a bunch of stuff that says “Status Not Installed”.
NVIDA listen to these developers this is a real issue here. Please address this for the love of all that is holy. I’ve been driven to drinking because of this as well as the other person in the thread.
Anyone have any news on what to do? I can’t seem get the 9.1.85 version to install in either a fresh install of VS2017 (even with the v140 toolkit installed) or VS2015. In both cases the CUDA installer fails because the Visual Studio integration fails to install. Same error as BarryCuda above:
Same problem. I tried to install cuda 9.1.85 on win10 x64, with vs2017 15.6.7. After a whole day of frustration, I finally found this page, as mentioned above, the key is VISUAL STUDIO INTEGRATION.
But I wonder would it be ok leaving out the visual studio intergration if I only want to run tensorflow for python?
It’s ok to only install the cuda library, tensorflow works fine so far for me.
Hi All,
After 2 days of trial & error, including taking advices from this thread, i’ve managed to install both the CUDA toolkit & visual studio integration. In the absence of a bugfix in the official installer, i consider this as a nearly perfect solution, and can’t wait to share it with others here :-)
My environment: Win7 64 bit, Visual Studio 2015 Community update 3, CUDA Toolkit 9.1
Solution:
download the offline CUDA installer
extract the installation files
install CUDA except “visual studio integration”
manually copy the “visual studio integration” files into MSBuild’s BuildCustomizations folder
edit your .vcxproj file to point to those customizations
Had the same issue here…
After wanting to install a newer graphics card driver, I wasn’t able to debug my cuda code anymore and after going back to the old driver it even deleted the whole Visual Studio integration.
Just wanting to thank albertazzf for his method, since it worked for me after 6 hours of trying un- and reinstalling :D
My environment: Win7 64bit, VS 2015 Community, Cuda 9.0
Cuda 9.0’s Visual Studio Integration fails on totally-updated Windows 10 with VS2017. Cuda 9.1 also fails for the same reason.
Here’s the log after installing Cuda 9.0 without Visual Studio Integration, and then only installing VS integration alone after the older drivers have been installed.
The uninstallation procedure is awful. Apparently recent updates to windows and/or the nvidia drivers requires that the system be completely wiped of all traces of nvidia before installing 9.0 or 9.1 currently. The uninstallation involves switching the driver for the GPU(s) to Windows Basic VGA(s), and then using Revo Uninstaller to remove every trace of Nvidia from the computer, and then deleting all “Nvidia Corporation” folders from ProgramData, Program Files, etc. Then installing regularly should “Just Work”.
Awful, takes a very long time, and makes you feel you are ripping apart the innards of your system. UNTIL NVIDIA DOES SOMETHING ABOUT THIS ERROR WHICH AFFECTS ~99% OF WINDOWS 10 USERS CURRENTLY INSTALLING CUDA FOR THE FIRST TIME (at least those who already installed display drivers beforehand), this is your best bet, sadly.