In NVIDIA® Nsight™ Visual Studio Edition, the host is the term for the computer that is running Visual Studio, where your application is being built and debugged. After you install NVIDIA Nsight on your computer, you will see a new menu called Nsight on your Visual Studio taskbar.

Feel free to explore the various options on this menu. The items that are critical for debugging will be discussed in further detail in later topics.

Nsight Host Settings

After installing NVIDIA Nsight on the host machine, open Visual Studio and go to Nsight > Options to configure your settings.

  1. On the General page, configure some of the basic options such as timeouts, whether to enable secure connections, and which port NVIDIA Nsight should use to connect to the target machine.

    Note that the default port setting is 8000. The port number on both the host and target machines must match in order for a successful connection to occur. (See Target Basics for more information.)

  2. On the Analysis page, you can configure several analysis options such as CUDA kernel trace mode, default activity type and timeline axis mode, as well as a default report directory.

  3. On the CUDA page, you can configure several options for both the CUDA Debugger as well as the CUDA Memory Checker.

  4. On the Debugger page, configure some basic display options for NVIDIA Nsight.

  5. On the Graphics page, you will find the following options:

Frame Debugging

Shader Debugging:

Troubleshooting:

  1. On the Updates page, select whether or not you want NVIDIA Nsight to automatically search for updates upon startup.

Click OK when you are finished configuring your options for NVIDIA Nsight.

Configuring NVIDIA Nsight on the Host Machine

After NVIDIA Nsight has been installed on the host machine, it will need to be configured. To do this:

  1. Open your project in Visual Studio.
  2. On the Solution Explorer menu, click the Nsight User Properties icon. (As an alternative, you can also go to the Project menu > Nsight User Properties.)

  3. This will open the NVIDIA Nsight User Settings dialog box.

    On the default Launch page, you configure the appropriate actions and options to be used when you begin debugging your project.

  4. For Launch external program, enter the file path to the application that is being debugged.
  5. For applications that are launched by another application (such as a Steam app or a proprietary launcher app), you should check the Application is a launcher checkbox.
  6. The Launch Options section allows you to configure the address of the target machine, any command line arguments needed, and set the working directory.

    The Connection name field can be the IP address of the machine on your local network, or the machine name as recognized on your network (see Recommended IP Address Formatting for more information).

    Note that you can also opt to use the Nsight Connections toolbar to specify the address of the computer that should be used for running the target application.

  7. Click the Synchronization page.

    From here, you can choose which file extensions to include or exclude for synchronization purposes.

    If you're debugging a large application, you'll want to turn off synchronization to prevent performance problems.

    When using file synchronization, all file paths are relative to localhost.
    When file synchronization is turned off, the file path is relative to the target machine (which could be localhost as well, depending on your settings.)
  8. Click the Shader Compilation page.

    This page allows you to specify include paths for compiling the shaders in your application.

Recommended IP Address Formatting

IPv6 IPv6 addresses should be formatted according to the IEFF RFC 5952 specification. Examples:
IPv6 addresses without port specification uses colons as group delimiters or optional square brackets. 2001:cb8:3:16d3:131:98a2:370f:7324 Or [2001:cb8:3:16d3:131:98a2:370f:7324]
IPv6 with port specification requires square brackets surrounding the address so the following colon is recognized as a port delimiter. [2001:cb8:3:16d3:131:98a2:370f:7324]:443
IPv4 IPv4 addresses should be formatted according to the IETF RFC 791. Examples:
IPv4 addresses without port specification use decimals as group delimiters 169.244.0.23
IPv4 addresses without port specification use a colon as the port delimiter 169.244.0.23:443
DNS The trusted machine's address can also be specified as a DNS address or hostname. Examples:
Addresses may be specified without a port. Computer.domain.com localhost
Addresses may be specified with a port. Computer.domain.com:443

Note that specifying the port in the address overrides the default port.

There are multiple places that the target machine can be specified. The order of preference is as follows:

  1. Address/port that has been set manually in the Analysis activity document
  2. Address/port that defaults to the address specified in the Nsight Connections toolbar
  3. If a project is open, the address/port set in the Launch Options
  4. If none of the above apply (e.g., you're using a new Analysis activity, no project is loaded, and/or the global connection setting has been disabled), the default connection will be localhost.


NVIDIA® Nsight™ Application Development Environment for Heterogeneous Platforms, Visual Studio Edition User Guide Rev. 5.3.170616 ©2009-2017. NVIDIA Corporation. All Rights Reserved.