Using Nsight with Visual Studio in Windows

Open up Visual Studio, and click on File, then choose New | Project.... A window will pop up where you set the type of project: choose the NVIDIA drop-down item, and then choose CUDA 9.2:

Give the project some appropriate name and then click OK. A project should appear in the solution explorer window with a simple premade CUDA test program, consisting of one source file, kernel.cu, which consists of a simple parallel add kernel with test code. If you want to see whether this compiles and runs, click the green right-pointing arrow at the top marked Local Windows Debugger. A Terminal should pop up ...

Get Hands-On GPU Programming with Python and CUDA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.