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/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


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