Skip to main content

cuvsResourcesGetStreamPoolStream

Function cuvsResourcesGetStreamPoolStream 

Source
pub unsafe extern "C" fn cuvsResourcesGetStreamPoolStream(
    res: cuvsResources_t,
    index: usize,
    stream: *mut cudaStream_t,
) -> cuvsError_t
Expand description

@brief Borrow a CUDA stream from a resources handle’s RAFT CUDA stream pool.

The pool owns the returned stream for the lifetime of res or until the pool is replaced. RAFT algorithms may issue work and device allocations on it. Index must be less than the pool size reported by ::cuvsResourcesGetStreamPoolSize.

@param[in] res cuvsResources_t opaque C handle @param[in] index Zero-based pool stream index @param[out] stream Borrowed CUDA stream @return cuvsError_t