Function cudarc::curand::result::set_stream

source ·
pub unsafe fn set_stream(
    generator: curandGenerator_t,
    stream: cudaStream_t
) -> Result<(), CurandError>
Expand description

Set the current stream for CURAND kernel launches.

See cuRAND docs

Safety

  1. The generator must be allocated and not already freed.
  2. The stream must be allocated and not already freed.