Rust module: cuvs::resources
Source: rust/cuvs/src/resources.rs
| 1 | #[derive(Debug)] |
| 2 | pub struct Resources(pub ffi::cuvsResources_t); { |
| 3 | /* private fields */ |
| 4 | } |
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.
Methods
| new | rust/cuvs/src/resources.rs:17 |
| set_cuda_stream | rust/cuvs/src/resources.rs:26 |
| get_cuda_stream | rust/cuvs/src/resources.rs:31 |
| sync_stream | rust/cuvs/src/resources.rs:40 |
| 1 | pub fn new() -> Result<Resources> |
Returns a new Resources object
Source: rust/cuvs/src/resources.rs:17
| 1 | pub fn set_cuda_stream(&self, stream: ffi::cudaStream_t) -> Result<()> |
Sets the current cuda stream
Source: rust/cuvs/src/resources.rs:26
| 1 | pub fn get_cuda_stream(&self) -> Result<ffi::cudaStream_t> |
Gets the current cuda stream
Source: rust/cuvs/src/resources.rs:31
| 1 | pub fn sync_stream(&self) -> Result<()> |
Syncs the current cuda stream
Source: rust/cuvs/src/resources.rs:40
Source: rust/cuvs/src/resources.rs:13
Copyright © 2026, NVIDIA Corporation.