Skip to contents

Explicitly frees CUDA device memory held by a gpu_sparse_matrix object. This is optional — the memory will be freed automatically when the object is garbage-collected.

Usage

st_free_gpu(x)

Arguments

x

A gpu_sparse_matrix object from st_read_gpu().

Value

Invisibly returns NULL.

See also

Examples

if (FALSE) { # \dontrun{
gpu_mat <- st_read_gpu("matrix.spz")
st_free_gpu(gpu_mat)
} # }