cudart

package
v0.0.0-...-98db5b7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: CC-BY-4.0 Imports: 7 Imported by: 0

README

Runtime Needs To Be Made

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CudaSlice

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

CudaSlice is cuda memory.

func Make

func Make(h nvidia.Handler, x interface{}, args ...uint) (*CudaSlice, error)

Make is like the make function of golang pass []type{}, gotypes with the exception of device.FLoat16 Then you define the length and the capacity.

func (*CudaSlice) Append

func (c *CudaSlice) Append(h nvidia.Handler, val interface{}) (*CudaSlice, error)

Append appends the slice

func (*CudaSlice) Get

func (c *CudaSlice) Get(val interface{}, offset uint) error

Get will get values of a cudaslice and fill the slice

func (*CudaSlice) Length

func (c *CudaSlice) Length() uint

Length returns the length of elements in the CudaSlice

func (*CudaSlice) Set

func (c *CudaSlice) Set(val interface{}, offset uint) error

Set is an experimental function that will set a value or slice of values from host into cuda mem

func (*CudaSlice) Type

func (c *CudaSlice) Type() devices.Type

Type returns the devices.Type the cudaslice contains

Jump to

Keyboard shortcuts

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