Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
Program is a wrapper for C.nvrtcProgram
func CreateProgram ¶
CreateProgram creates an instance of nvrtcProgram with the given input parameters, and sets the output parameter prog with it.
func (*Program) AddNameExpression ¶
AddNameExpression notes the given name expression denoting the address of a __global__ function or __device__/__constant__ variable.
The identical name expression string must be provided on a subsequent call to nvrtcGetLoweredName to extract the lowered name.
func (*Program) GetLoweredName ¶
GetLoweredName extracts the lowered (mangled) name for a __global__ function or __device__/__constant__ variable, and updates *lowered_name to point to it. The memory containing the name is released when the NVRTC program is destroyed by nvrtcDestroyProgram. The identical name expression must have been previously provided to nvrtcAddNameExpression.