]> git.ipfire.org Git - thirdparty/gcc.git/blob
ae293be7d81174ee345f3d42548fa1d4bcd79eb6
[thirdparty/gcc.git] /
1 ..
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.
5
6 .. _nvidia-ptx-function-attributes:
7
8 Nvidia PTX Function Attributes
9 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10
11 These function attributes are supported by the Nvidia PTX back end:
12
13 .. index:: kernel attribute, Nvidia PTX
14
15 .. nvidia-ptx-fn-attr:: kernel
16
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
19 library.
20 By default functions are only callable only from other PTX functions.
21
22 Kernel functions must have ``void`` return type.