Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MemcpyAsync ¶
func MemcpyAsync(dst, src any, size int64, kind MemcpyKind, stream any) error
func StreamSynchronize ¶
Types ¶
type MemcpyKind ¶
type MemcpyKind int
MemcpyKind defines direction of CUDA memory copy
const ( MemcpyHostToHost MemcpyKind = 0 MemcpyHostToDevice MemcpyKind = 1 MemcpyDeviceToHost MemcpyKind = 2 MemcpyDeviceToDevice MemcpyKind = 3 )
type PinnedHostPool ¶
type PinnedHostPool struct{}
func NewPinnedHostPool ¶
func NewPinnedHostPool() *PinnedHostPool
func (*PinnedHostPool) Close ¶
func (p *PinnedHostPool) Close() error
func (*PinnedHostPool) Put ¶
func (p *PinnedHostPool) Put(ptr any, size int64)
Click to show internal directories.
Click to hide internal directories.