summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/nvidia-ptx-variable-attributes.html
blob: fcde0cddbead463095576212d7171ba253fcbf38 (plain)
1
2
3
4
5
6
7
8
<div class="subsection-level-extent" id="Nvidia-PTX-Variable-Attributes"> <div class="nav-panel"> <p> Next: <a href="powerpc-variable-attributes" accesskey="n" rel="next">PowerPC Variable Attributes</a>, Previous: <a href="msp430-variable-attributes" accesskey="p" rel="prev">MSP430 Variable Attributes</a>, Up: <a href="variable-attributes" accesskey="u" rel="up">Specifying Attributes of Variables</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div>  <h1 class="subsection" id="Nvidia-PTX-Variable-Attributes-1"><span>6.34.11 Nvidia PTX Variable Attributes<a class="copiable-link" href="#Nvidia-PTX-Variable-Attributes-1"> ¶</a></span></h1> <p>These variable attributes are supported by the Nvidia PTX back end: </p> <dl class="table"> <dt>
<span><code class="code">shared</code><a class="copiable-link" href="#index-shared-attribute_002c-Nvidia-PTX"> ¶</a></span>
</dt> <dd><p>Use this attribute to place a variable in the <code class="code">.shared</code> memory space. This memory space is private to each cooperative thread array; only threads within one thread block refer to the same instance of the variable. The runtime does not initialize variables in this memory space. </p></dd> </dl> </div><div class="_attribution">
  <p class="_attribution-p">
    &copy; Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br>
    <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Nvidia-PTX-Variable-Attributes.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Nvidia-PTX-Variable-Attributes.html</a>
  </p>
</div>