cuda

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Unlicense Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreeHost

func FreeHost(ptr any) error

func HostAlloc

func HostAlloc(size int64) (any, error)

func MemcpyAsync

func MemcpyAsync(dst, src any, size int64, kind MemcpyKind, stream any) error

func NewCUDAIndexImpl

func NewCUDAIndexImpl(cfg types.GPUConfig) (types.Index, error)

func StreamSynchronize

func StreamSynchronize(stream any) error

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) Get

func (p *PinnedHostPool) Get(size int64) (any, error)

func (*PinnedHostPool) Put

func (p *PinnedHostPool) Put(ptr any, size int64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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