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)
| 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: |
nothing calls this directly
no test coverage detected