summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/nvidia-ptx-function-attributes.html
blob: c9f09ebf5cf7614c83ba7f94a26fccf12b7cb8c7 (plain)
1
2
3
4
5
6
7
8
9
10
<div class="subsection-level-extent" id="Nvidia-PTX-Function-Attributes"> <div class="nav-panel"> <p> Next: <a href="powerpc-function-attributes" accesskey="n" rel="next">PowerPC Function Attributes</a>, Previous: <a href="nios-ii-function-attributes" accesskey="p" rel="prev">Nios II Function Attributes</a>, Up: <a href="function-attributes" accesskey="u" rel="up">Declaring Attributes of Functions</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-Function-Attributes-1"><span>6.33.23 Nvidia PTX Function Attributes<a class="copiable-link" href="#Nvidia-PTX-Function-Attributes-1"> ¶</a></span></h1> <p>These function attributes are supported by the Nvidia PTX back end: </p> <dl class="table"> <dt>
<span><code class="code">kernel</code><a class="copiable-link" href="#index-kernel-attribute_002c-Nvidia-PTX"> ¶</a></span>
</dt> <dd>
<p>This attribute indicates that the corresponding function should be compiled as a kernel function, which can be invoked from the host via the CUDA RT library. By default functions are only callable only from other PTX functions. </p> <p>Kernel functions must have <code class="code">void</code> return type. </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-Function-Attributes.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Nvidia-PTX-Function-Attributes.html</a>
  </p>
</div>