MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / set_stream

Method set_stream

crates/cudnn/src/context.rs:115–119  ·  view source on GitHub ↗

This function sets the user's CUDA stream in the cuDNN handle. The new stream will be used to launch cuDNN GPU kernels or to synchronize to this stream when cuDNN kernels are launched in the internal streams. If the cuDNN library stream is not set, all kernels use the default (NULL) stream. Setting the user stream in the cuDNN handle guarantees the issue-order execution of cuDNN calls and other

(&mut self, stream: &cust::stream::Stream)

Source from the content-addressed store, hash-verified

113 /// Returns error if the supplied stream in invalid or a mismatch if found between the user
114 /// stream and the cuDNN handle context.
115 pub fn set_stream(&mut self, stream: &cust::stream::Stream) -> Result<(), CudnnError> {
116 unsafe {
117 sys::cudnnSetStream(self.raw, stream.as_inner() as sys::cudaStream_t).into_result()
118 }
119 }
120
121 /// This function computes a binary element-wise tensor core operations according to the
122 /// following equation:

Callers

nothing calls this directly

Calls 2

into_resultMethod · 0.45
as_innerMethod · 0.45

Tested by

no test coverage detected