Go package: cuvs
Sources: go
Source: go/memory_resource.go:12
Supported distance metrics
Source: go/distance.go:14
Maps cuvs Go distances to C distances
Source: go/distance.go:38
Source: go/dlpack.go:219
Source: go/dlpack.go:274
Source: go/exceptions.go:7
Source: go/memory_resource.go:10
Source: go/memory_resource.go:17
Source: go/distance.go:11
Resources are objects that are shared between function calls, and includes things like CUDA streams, cuBLAS handles and other resources that are expensive to create.
Source: go/resources.go:11
ManagedTensor is a wrapper around a dlpack DLManagedTensor object. This lets you pass matrices in device or host memory into cuvs.
Source: go/dlpack.go:21
Source: go/dlpack.go:15
Wrapper function to convert cuda error to Go error
Source: go/exceptions.go:18
Wrapper function to convert cuvs error to Go error
Source: go/exceptions.go:10
Source: go/memory_resource.go:81
Creates new CuvsPoolMemory struct initial_pool_size_percent is the initial size of the pool in percent of total available device memory max_pool_size_percent is the maximum size of the pool in percent of total available device memory managed is whether to use CUDA managed memory
Source: go/memory_resource.go:29
Returns a new Resource object
Source: go/resources.go:16
Creates a new Tensor on the host and copies the data into it.
Source: go/dlpack.go:27
Creates a new Tensor with uninitialized data on the current device.
Source: go/dlpack.go:131
Source: go/dlpack.go:79
Computes the pairwise distance between two vectors.
Source: go/distance.go:62
Disables pool memory
Source: go/memory_resource.go:73
Source: go/resources.go:50
Gets the current cuda stream
Source: go/resources.go:39
Syncs the current cuda stream
Source: go/resources.go:34
Destroys Tensor, freeing the memory it was allocated on.
Source: go/dlpack.go:184
Expands the Tensor by adding newData to the end of the current data. The Tensor must be on the device.
Source: go/dlpack.go:250
Returns the shape of the Tensor.
Source: go/dlpack.go:244
Returns a slice of the data in the Tensor. The Tensor must be on the host.
Source: go/dlpack.go:358
Transfers the data in the Tensor to the device.
Source: go/dlpack.go:216
Transfers the data in the Tensor to the host.
Source: go/dlpack.go:325