Documentation ¶
Index ¶
- func Memcpy(dest, src cutil.Pointer, sizeinbytes uint) error
- type Malloced
- func (m *Malloced) DPtr() *unsafe.Pointer
- func (m *Malloced) FillSlice(handle *cudnn.Handler, input interface{}) error
- func (m *Malloced) NewReadWriter(s gocu.Streamer) *crtutil.ReadWriter
- func (m *Malloced) OffSet(bybytes uint) *Malloced
- func (m *Malloced) Ptr() unsafe.Pointer
- func (m *Malloced) SIB() uint
- func (m *Malloced) SetAll(val int32) error
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Malloced ¶
type Malloced struct {
// contains filtered or unexported fields
}
Malloced is a pointer to some nvidia memory
func MallocGlobal ¶
MallocGlobal allocates memory to the nvidia gpu Handler will set the device it is allocating to. Besure to set back if wanting to use another device
func MallocHost ¶
MallocHost allocates memory onto the host used by nvidia devices. Handler will set the device it is allocating to. Besure to set back if wanting to use another device
func (*Malloced) NewReadWriter ¶
func (m *Malloced) NewReadWriter(s gocu.Streamer) *crtutil.ReadWriter
NewReadWriter creates a devio.Buffer for the malloced memory. If s is nil then copies will be synced if not then copies will be async
Directories ¶
Path | Synopsis |
---|---|
cuda
|
|
Package cudnn takes the descriptors from gocudnn which is from cudnn and seperates them into seperate packages.
|
Package cudnn takes the descriptors from gocudnn which is from cudnn and seperates them into seperate packages. |
softmax
Package softmax uses the softmax functions from gocudnn which is from cudnn.
|
Package softmax uses the softmax functions from gocudnn which is from cudnn. |
tensor
Package tensor is used to make tensors by using gocudnn.
|
Package tensor is used to make tensors by using gocudnn. |
custom
|
|
Package nvutil are functions that use the other nvidia packages and allows them to be used with each other
|
Package nvutil are functions that use the other nvidia packages and allows them to be used with each other |
Click to show internal directories.
Click to hide internal directories.