This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, nvptx] document "kernel" function attribute


On 01/07/16 12:54, Sandra Loosemore wrote:
On 01/07/2016 06:48 AM, Nathan Sidwell wrote:
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'.

How about this version?

works for me, thanks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]