This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, nvptx] document "kernel" function attribute
- From: Nathan Sidwell <nathan at acm dot org>
- To: Sandra Loosemore <sandra at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: bschmidt at redhat dot com
- Date: Thu, 7 Jan 2016 08:48:57 -0500
- Subject: Re: [patch, nvptx] document "kernel" function attribute
- Authentication-results: sourceware.org; auth=none
- References: <568DECF9 dot 6090309 at codesourcery dot com>
On 01/06/16 23:43, Sandra Loosemore wrote:
I've been trying to fill in missing documentation for target-specific
attributes. I'm not 100% sure I've got this one correct. OK to commit?
thanks.
+as a kernel function, which is callable by host code.
It's not directly callable. Perhaps ', which is invokable by the host via the
CUDA RT library'?
+By default, functions are compiled as device functions instead,
+which are callable only by other device code.
what are 'device functions'? Perhaps something like
'By default functions are only callable from other PTX functions'.
nathan