We would like to introduce our newest developer tool for CUDA kernel debugging, NVIDIA Nsight™ Visual Studio Code Edition.
NVIDIA Nsight™ Visual Studio Code Edition (VSCE) is an application development environment for heterogeneous platforms that brings CUDA® development for GPUs into Microsoft Visual Studio Code. NVIDIA Nsight™ VSCE enables you to build and debug GPU kernels and native CPU code as well as inspect the state of the GPU and memory.
Using smart CUDA auto-code completion features improves the overall development experience and enables users to save time and effort when writing code.
Debugging with Nsight Visual Studio Code Edition provides diverse benefits, including code formatting, easy navigation through source code, displaying and interacting with different source files, building executables, and testing.
Remote Development Support
Nsight Visual Studio Code Edition enables developers to implement CUDA code in various cluster environments such as Virtual Machines or remote Docker containers. It also supports code development for Linux systems via the Remote – WSL extension.
As with other Nsight tools from NVIDIA, Nsight Visual Studio Code Edition is offered free of charge. We love it when your code works better and is delivered sooner. Enjoy!
CUDA Syntax Highlighting for Code Development and Debugging
Edit code productively with syntax highlighting and IntelliSense for CUDA code. Auto-completion, go to definition, find references, rename symbols, and more all seamlessly work for kernel functions the same as they do for C++ functions.
CUDA Kernel Breakpoint Support and Kernel Execution Control
Break into a debugging session in CPU or GPU device code using standard breakpoints, including support for conditional breakpoints with expression evaluation. GUI controls allow you to step over, into, or out of statements in the source code, just like normal CPU debugging. Breakpoints are evaluated for every kernel thread and will halt execution when any thread encounters them.
GPU and Kernel State Inspection
Break into the debugger to see all the detailed information at any point in the application with GPU debugging support for register, variable, and call-stack. There is watchlist support to add specific variables of interest for tracking. Additionally, there are focus controls to manually select streaming multiprocessor (SM), warp, and lane numbers to switch the debugger focus.
See the Nsight VSCode Edition spotlight video
This Nsight VSCode Edition spotlight shows you how Nsight VSCode Edition fits in with the other NVIDIA IDE debuggers and can be set up in Microsoft’s Visual Studio Code. Then, you’ll see all the key features in action. You’re going to love it!
See Nsight VSCode Edition demonstrated at GTC’21
GTC’21 Video On Demand: It’s Alive: CUDA in Visual Studio Code!
View the Microsoft announcement for the VSCode extension by Nsight VSCE
CUDA Support in Visual Studio Code with Julia Reid
Read the blog posting
Announcing NVIDIA Nsight Visual Studio Code Edition: New Addition to the Nsight Developer Tools Suite
Visit the Nsight VSCode Edition overview page
The Nsight VSCode Edition overview page is your information hub for general information, availability, videos, and other links to other NVIDIA tools for GPU code development.