nvrtc

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success                           nvrtcResult = C.NVRTC_SUCCESS
	OutOfMemory                       nvrtcResult = C.NVRTC_ERROR_OUT_OF_MEMORY
	ProgramCreationFailure            nvrtcResult = C.NVRTC_ERROR_PROGRAM_CREATION_FAILURE
	InvalidInput                      nvrtcResult = C.NVRTC_ERROR_INVALID_INPUT
	InvalidProgram                    nvrtcResult = C.NVRTC_ERROR_INVALID_PROGRAM
	InvalidOption                     nvrtcResult = C.NVRTC_ERROR_INVALID_OPTION
	Compilation                       nvrtcResult = C.NVRTC_ERROR_COMPILATION
	BuiltinOperationFailure           nvrtcResult = C.NVRTC_ERROR_BUILTIN_OPERATION_FAILURE
	NoNameExpressionsAfterCompilation nvrtcResult = C.NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION
	NoLoweredNamesBeforeCompilation   nvrtcResult = C.NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION
	NameExpressionNotValid            nvrtcResult = C.NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID
	InternalError                     nvrtcResult = C.NVRTC_ERROR_INTERNAL_ERROR
)

Variables

This section is empty.

Functions

func Version

func Version() (major, minor int, err error)

Types

type Include

type Include struct {
	Source string
	Name   string
}

type Program

type Program struct {
	// contains filtered or unexported fields
}

func CreateProgram

func CreateProgram(source, name string, headers ...Include) (Program, error)

func (*Program) AddNameExpression

func (program *Program) AddNameExpression(nameExpression string) error

func (*Program) Compile

func (program *Program) Compile(options ...string) error

func (*Program) Destroy

func (program *Program) Destroy() error

func (*Program) GetLog

func (program *Program) GetLog() (string, error)

func (*Program) GetLoweredName

func (program *Program) GetLoweredName(nameExpression string) (string, error)

func (*Program) GetPTX

func (program *Program) GetPTX() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL