C.W.K.
Stream
Lesson 03 of 05 · published

Setting Up on Windows + RTX 4090

~14 min · cuda, windows, rtx, visual-studio, setup

Level 0Beginner
0 XP0/38 lessons0/12 achievements
0/100 XP to next level100 XP to go0% complete

The fastest dev box for CUDA in 2026: Windows 11 + RTX 40-series

If you have a recent NVIDIA GPU and want zero friction, Windows is genuinely the path of least resistance. Drivers ship same-day with new GPUs, Visual Studio integration is first-party, and Nsight Compute / Nsight Systems run natively. The Linux setup is doable but the Windows setup is faster.

Step-by-step

  1. Install Visual Studio 2022 (Community edition is free). Pick the 'Desktop development with C++' workload. CUDA's installer needs the C++ compiler and Windows SDK from VS to integrate properly. Without VS, NVCC has nothing to call as the host compiler on Windows.
  2. Install the latest Game Ready or Studio driver from NVIDIA's website. Make sure the version supports the CUDA Toolkit version you want (check the Toolkit release notes). For CUDA 13.2 on Windows, you need driver 555.x or newer.
  3. Install CUDA Toolkit 13.2. Download from NVIDIA, run the installer, pick 'Express (Visual Studio Integration).' This installs NVCC, libraries (cuBLAS, cuDNN if bundled, cuFFT), Nsight tools, and the VS integration that makes 'CUDA Runtime' a project template in VS.
  4. Verify the toolchain from a Developer Command Prompt for VS 2022 (this is the prompt where cl.exe is on PATH).

Code

Verify NVCC + cl.exe in the same shell·bash
:: Open: Developer Command Prompt for VS 2022
nvcc --version
:: Should print: 'release 13.2, V13.2.xx'

cl.exe
:: Should print: 'Microsoft (R) C/C++ Optimizing Compiler Version 19.xx'
:: NVCC needs cl.exe as the host compiler — this proves both are visible.
Compile and run hello.cu directly·bash
:: Save the hello kernel from the next lesson as hello.cu, then:
nvcc -arch=sm_89 hello.cu -o hello.exe
hello.exe
::  Hello from block 0, thread 0
::  Hello from block 0, thread 1
::  Hello from block 0, thread 2
::  Hello from block 0, thread 3

External links

Exercise

Even if your dev machine is a Mac, walk through the Windows path on a friend's PC or a cloud Windows instance once. Why? Because nearly every CUDA tutorial assumes Windows or Linux + NVIDIA, and seeing the smooth Windows install yourself makes you fluent in the docs. Stop after nvcc --version works — the rest of this track will work on either OS.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.