2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. _nvidia-ptx-function-attributes:
8 Nvidia PTX Function Attributes
9 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 These function attributes are supported by the Nvidia PTX back end:
13 .. index:: kernel attribute, Nvidia PTX
15 .. nvidia-ptx-fn-attr:: kernel
17 This attribute indicates that the corresponding function should be compiled
18 as a kernel function, which can be invoked from the host via the CUDA RT
20 By default functions are only callable only from other PTX functions.
22 Kernel functions must have ``void`` return type.