Skip to main content

cuvsResourcesSetStreamPool

Function cuvsResourcesSetStreamPool 

Source
pub unsafe extern "C" fn cuvsResourcesSetStreamPool(
    res: cuvsResources_t,
    pool_size: usize,
) -> cuvsError_t
Expand description

@brief Install a RAFT CUDA stream pool on a resources handle, replacing any existing pool.

The pool owns its streams for the lifetime of res or until the pool is replaced. RAFT algorithms may issue work and device allocations on these streams. Synchronize work and retire any external stream attachments before replacing the pool or destroying res.

@param[in] res cuvsResources_t opaque C handle @param[in] pool_size Number of streams to create; must be at least 1 @return cuvsError_t