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
- The generator must be allocated and not already freed.
- The stream must be allocated and not already freed.