1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
|
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta content="Nsight Compute Training." name="description" />
<meta content="Training" name="keywords" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Training — NsightCompute 12.4 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
<link rel="stylesheet" href="../_static/omni-style.css" type="text/css" />
<link rel="stylesheet" href="../_static/api-styles.css" type="text/css" />
<link rel="shortcut icon" href="../_static/nsight-compute.ico"/>
<!--[if lt IE 9]>
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/mermaid-init.js"></script>
<script src="../_static/design-tabs.js"></script>
<script src="../_static/version.js"></script>
<script src="../_static/social-media.js"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Archives" href="../Archives/index.html" />
<link rel="prev" title="NV::Rules::ISourceInfo" href="../api/classNV_1_1Rules_1_1ISourceInfo.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../index.html">
<img src="../_static/nsight-compute.png" class="logo" alt="Logo"/>
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../ReleaseNotes/index.html">1. Release Notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../NsightCompute/index.html">3. Nsight Compute</a></li>
<li class="toctree-l1"><a class="reference internal" href="../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../CustomizationGuide/index.html">1. Customization Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../NvRulesAPI/index.html">2. NvRules API</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">Training</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#external-resources">External Resources</a></li>
<li class="toctree-l2"><a class="reference internal" href="#usage-examples">Usage Examples</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#filter-options">Filter Options</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../Archives/index.html">Archives</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">NsightCompute</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home"></a> »</li>
<li>Training</li>
<li class="wy-breadcrumbs-aside">
</li>
<li class="wy-breadcrumbs-aside">
<span>v2024.1.1 |</span>
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
<span> </span>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="training">
<h1>Training<a class="headerlink" href="#training" title="Permalink to this headline"></a></h1>
<p>Nsight Compute training content.</p>
<p>NVIDIA Nsight Compute Training resources.</p>
<section id="external-resources">
<span id="introduction"></span><h2>External Resources<a class="headerlink" href="#external-resources" title="Permalink to this headline"></a></h2>
<p><strong>Forum</strong></p>
<ul class="simple">
<li><p><a class="reference external" href="https://devtalk.nvidia.com/default/board/327/nsight-compute-/">DevTalk Nsight Compute Forum</a></p></li>
</ul>
<p><strong>Blogs</strong></p>
<ul class="simple">
<li><p>Check the current list of <a class="reference external" href="https://developer.nvidia.com/nsight-compute-blogs">blog posts</a></p></li>
</ul>
<p><strong>Videos</strong></p>
<ul class="simple">
<li><p>Check the current list of <a class="reference external" href="https://developer.nvidia.com/nsight-compute-videos">training videos</a></p></li>
</ul>
<p><strong>Code Examples</strong></p>
<ul class="simple">
<li><p>Have a look at our coding examples on <a class="reference external" href="https://github.com/NVIDIA/nsight-training">GitHub</a></p></li>
</ul>
</section>
<section id="usage-examples">
<h2>Usage Examples<a class="headerlink" href="#usage-examples" title="Permalink to this headline"></a></h2>
<section id="filter-options">
<h3><a class="reference external" href="#filter-options">Filter Options</a><a class="headerlink" href="#filter-options" title="Permalink to this headline"></a></h3>
<p>Note that examples will use the term <em>workload</em> to refer to either kernels, graphs, ranges or cmdlists unless stated otherwise.</p>
<ol class="arabic">
<li><p><strong>Profile first two workloads</strong></p>
<p><code class="docutils literal notranslate"><span class="pre">--launch-count</span> <span class="pre">2</span></code></p>
</li>
<li><p><strong>Profile first two workloads launched on device with device ID 1</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-2">
<img alt="../_images/filter-example-2.png" src="../_images/filter-example-2.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--device</span> <span class="pre">1</span> <span class="pre">--launch-count</span> <span class="pre">2</span></code></p>
</li>
<li><p><strong>Profile 2nd workload on each gpu</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-3">
<img alt="../_images/filter-example-3.png" src="../_images/filter-example-3.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--launch-skip</span> <span class="pre">1</span> <span class="pre">--launch-count</span> <span class="pre">1</span> <span class="pre">--filter-mode</span> <span class="pre">per-gpu</span></code></p>
</li>
<li><p><strong>Skip first 2 workloads of each launch configuration before profiling</strong></p>
<p><code class="docutils literal notranslate"><span class="pre">--launch-skip</span> <span class="pre">2</span> <span class="pre">--filter-mode</span> <span class="pre">per-launch-config</span></code></p>
</li>
<li><p><strong>Profile “Bar” kernel</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-5">
<img alt="../_images/filter-example-5.png" src="../_images/filter-example-5.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--kernel-name</span> <span class="pre">Bar</span></code></p>
</li>
<li><p><strong>Profile kernels which have “Bar” in function name</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-6">
<img alt="../_images/filter-example-6.png" src="../_images/filter-example-6.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--kernel-name</span> <span class="pre">regex:Bar</span></code></p>
</li>
<li><p><strong>Profile only 2nd invocation of kernel “Foo”</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-7">
<img alt="../_images/filter-example-7.png" src="../_images/filter-example-7.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--kernel-id</span> <span class="pre">::Foo:2</span></code></p>
</li>
<li><p><strong>Profile only 2nd invocation of all kernels which have “Bar” in name</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-8">
<img alt="../_images/filter-example-8.png" src="../_images/filter-example-8.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--kernel-id</span> <span class="pre">::regex:Bar:2</span></code></p>
</li>
<li><p><strong>Skip first 2 workloads before matching “Foo” or “Bar” in kernel names</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-9">
<img alt="../_images/filter-example-9.png" src="../_images/filter-example-9.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--launch-skip-before-match</span> <span class="pre">2</span> <span class="pre">--kernel-name</span> <span class="pre">regex:“Foo|Bar”</span></code></p>
</li>
<li><p><strong>Profile all 7th kernel invocations with mangled name “_FooBar” on CUDA context ID 1 and stream ID 2</strong></p>
<p><code class="docutils literal notranslate"><span class="pre">--kernel-id</span> <span class="pre">1:2:_Foobar:7</span> <span class="pre">--kernel-name-base</span> <span class="pre">mangled</span></code></p>
</li>
<li><p><strong>Profile all workloads launched in first 3 cu(da)ProfilerStart/Stop APIs created ranges</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-11">
<img alt="../_images/filter-example-11.png" src="../_images/filter-example-11.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--range-filter</span> <span class="pre">:[1-3]:</span></code></p>
</li>
<li><p><strong>Profile all workloads launched in 2nd NVTX Push/Pop range A</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-12">
<img alt="../_images/filter-example-12.png" src="../_images/filter-example-12.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--range-filters</span> <span class="pre">::2</span> <span class="pre">--nvtx</span> <span class="pre">--nvtx-include</span> <span class="pre">A/</span></code></p>
</li>
<li><p><strong>Profile all workloads launched in NVTX Push/Pop range A except the ones in NVTX Push/Pop range B</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-13">
<img alt="../_images/filter-example-13.png" src="../_images/filter-example-13.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--nvtx</span> <span class="pre">--nvtx-include</span> <span class="pre">A/</span> <span class="pre">--nvtx-exclude</span> <span class="pre">B/</span></code></p>
</li>
<li><p><strong>Profile all “Foo” kernels except those launched in NVTX Push/Pop range B</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-14">
<img alt="../_images/filter-example-14.png" src="../_images/filter-example-14.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--nvtx</span> <span class="pre">--nvtx-exclude</span> <span class="pre">B/</span> <span class="pre">--kernel-name</span> <span class="pre">Foo</span></code></p>
</li>
<li><p><strong>Profile all workloads launched in 2nd NVTX Start/End range A inside 2nd cu(da)ProfilerStart/Stop APIs created range</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-15">
<img alt="../_images/filter-example-15.png" src="../_images/filter-example-15.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--range-filter</span> <span class="pre">yes:2:2</span> <span class="pre">--nvtx</span> <span class="pre">--nvtx-include</span> <span class="pre">A</span></code></p>
</li>
<li><p><strong>Profile all workloads launched in 1st NVTX Push/Pop range A inside both 1st and 2nd cu(da)ProfilerStart/Stop APIs created range</strong></p>
<figure class="align-center" id="filter-options-fig-filter-example-16">
<img alt="../_images/filter-example-16.png" src="../_images/filter-example-16.png" />
</figure>
<p><code class="docutils literal notranslate"><span class="pre">--range-filter</span> <span class="pre">yes:[1-2]:1</span> <span class="pre">--nvtx</span> <span class="pre">--nvtx-include</span> <span class="pre">A/</span></code></p>
</li>
<li><p><strong>Profile all workloads launched in 1st cu(da)ProfilerStart/Stop APIs created range with 2nd NVTX push/pop range A and domain D</strong></p>
<p><code class="docutils literal notranslate"><span class="pre">--range-filter</span> <span class="pre">no:1:2</span> <span class="pre">--nvtx</span> <span class="pre">--nvtx-include</span> <span class="pre">D@A/</span></code></p>
</li>
</ol>
<p class="rubric-h1 rubric">Notices</p>
<p class="rubric-h2 rubric">Notices</p>
<p>ALL NVIDIA DESIGN SPECIFICATIONS, REFERENCE BOARDS, FILES, DRAWINGS, DIAGNOSTICS, LISTS, AND OTHER DOCUMENTS (TOGETHER AND SEPARATELY, “MATERIALS”) ARE BEING PROVIDED “AS IS.” NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</p>
<p>Information furnished is believed to be accurate and reliable. However, NVIDIA Corporation assumes no responsibility for the consequences of use of such information or for any infringement of patents or other rights of third parties that may result from its use. No license is granted by implication of otherwise under any patent rights of NVIDIA Corporation. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all other information previously supplied. NVIDIA Corporation products are not authorized as critical components in life support devices or systems without express written approval of NVIDIA Corporation.</p>
<p class="rubric-h2 rubric">Trademarks</p>
<p>NVIDIA and the NVIDIA logo are trademarks or registered trademarks of NVIDIA Corporation in the U.S. and other countries. Other company and product names may be trademarks of the respective companies with which they are associated.</p>
</section>
</section>
</section>
</div>
</div>
<footer>
<hr/>
<div role="contentinfo">
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
<span class="lastupdated">Last updated on Mar 06, 2024.
</span></p>
</div>
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>
|