CUDA Install hangs forever, Windows 10, GeForce 920m

Hi,

Install starts ok. I see some items installed under Start/Nvdia corporation/:

  • Nsight Monitor
  • Browse Nsight code samples
  • Browse nVidia tools extension
  • Shortcut on desktop - “NVIDIA Nsight HUD Launcher 2019.2”

But then installation banner gets stuck with
“Installation in progress
Installing Nsight Visual Studio Edition”

This runs for an hour now without any progress. Task Manager shows that “Nvidial Install Application” consumes 0 CPU, but ~3 Mb of memory.
Analyse wait chain tells that “setup.exe is running normally”.

It is already second time. First time, I had to kill it, restart and remove “Nsight Visual Studio Edition” from Installed Programs. VS apparently was installed, but it is not seen anywhere.

What should I do?

Do you have a version of visual studio installed?

Follow the instructions carefully in the windows install guide.

I have VS 2015 and VS 2017.
Trying to remove them but no luck.
Cannot remove “Nsight Visual Studio Edition” (listed in “programs and features”) as well.

I have reset my Windows-10 (it’ a pain) and now gradually, by saving restore points I managed to install CUDA.

Visual Studio 2015 must be installed before everything.

Yes, visual studio is supposed to be installed before CUDA.

My WIndows-10 hang foever in Cuda 10.0 and 10.1.
It passed installation for Cuda 11.1.

Seems like installing with WGET or CURL rate-limits the process. You need to artificially lower that rate so you aren’t throttled.

I also use aria and it seems to help with consistency.

Below is an example block.

# Install aria2 (if not already installed)
sudo apt-get install -y aria2 && \

# Download and configure CUDA repository pin (no limit)
aria2c -x 16 -s 16 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin && \
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600 && \

# Download and install CUDA repository package (1MB/s limit)
aria2c --max-overall-download-limit=1M -x 16 -s 16 https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda-repo-ubuntu2204-12-6-local_12.6.3-560.35.05-1_amd64.deb && \
sudo dpkg -i cuda-repo-ubuntu2204-12-6-local_12.6.3-560.35.05-1_amd64.deb && \

# Add CUDA keyring and update repositories
sudo cp /var/cuda-repo-ubuntu2204-12-6-local/cuda-*-keyring.gpg /usr/share/keyrings/ && \
sudo apt-get update && \

# Install CUDA toolkit without optional extras
sudo apt-get -y install cuda-toolkit-12-6 --no-install-recommends

Im getting stuck at the same spot.
Have installed VS2022 prior, doesnt help.

Have reinstalled windows 11 3 times, still can’t install cuda tool kit. Have tried cuda 12.6 and 12.8

Just ran into this same issue as described in OP’s post above - it seems to be an issue with Visual Studio 17.13 that just came out this past week, so I completely uninstalled my current visual studio and visual studio installer that I upgraded this past week, and then I followed instructions here to install the previous version of Visual Studio, namely version 17.12. I did it with the following command in a Powershell Prompt, with VisualStudioSetup.exe being the file that gets downloaded directly from the official Visual Studio website when selecting “Visual Studio Community 2022” as the IDE to download:

.\VisualStudioSetup.exe --channelUri https://aka.ms/vs/17/release.LTSC.17.12/channel

After making selections and let install Visual Studio per above command, I was able to then afterwards install the Visual Studio CUDA 12.8 toolkit integrations without a hitch. Hope this helps. But yes Visual Studio MUST BE installed BEFORE CUDA Toolkit for the Visual Studio CUDA Toolkit Integrations to install as well.

When I installed the Visual Studio LTSC 17.12, the installer didn’t have problems anymore, however, Nsight is still not installable:

Installed:
- Nsight Monitor
Not Installed:
- Nsight for Visual Studio 2022
Reason: VS2022 was not found
- Nsight for Visual Studio 2019
Reason: VS2019 was not found
- Integrated Graphics Frame Debugger and Profiler
Reason: see NVIDIA Nsight Integration | NVIDIA Developer
- Integrated CUDA Profilers
Reason: see NVIDIA Nsight Integration | NVIDIA Developer

At this point I’m thinking if Tensorflow needs this part of cuda or not.

Tensorflow probably doesn’t need the visual studio CUDA integrations unless if you’re maybe programming Tensorflow code within Visual Studio. Also did you select desktop development with C++ as one of your workloads when installing the CUDA Nsight integrations? That might be needed in order for nsight for visual studio 2022 to install. I also got the Integrated Graphics Frame Debugger and Profiler and Integrated CUDA profilers not installed warning message at the end as well btw - I think it might be because those debugger and profilers are installed via the visual studio extension manager now instead of the cuda toolkit installer method, but unfortunately I don’t know for sure unless if someone from Nvidia confirms or denies this.

I’m programming with windows, in python using VSCode, so I don’t think we are on the sabe boat rn, but I highly suspect my biggest problem is that neither tensorflow and pytorch are 100% compatible with cuda 12.8 yet.

I did select the C++ desktop development, and it seems I managed to install everything but the monitor.

Changing the version of Visual Studio worked wonders, but even at this state I might just have to uninstall everything again and downgrade CUDA :(

Yea according to this you’ll need cuda toolkit 12.3 for the windows native version of tensorflow, and unfortunately it looks like tensorflow 2.11 and beyond has dropped support for windows native.

Thank you for sharing this solution.

it work thx