MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / GetCurrentStream

Method GetCurrentStream

csrc/includes/context.h:86–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 curandGenerator_t& GetRandGenerator() { return _gen; }
85
86 cudaStream_t GetCurrentStream()
87 {
88 // get current pytorch stream.
89 cudaStream_t stream = at::cuda::getCurrentCUDAStream();
90 return stream;
91 }
92
93 cudaStream_t GetNewStream() { return at::cuda::getStreamFromPool(); }
94

Callers

nothing calls this directly

Calls 1

getCurrentCUDAStreamFunction · 0.85

Tested by

no test coverage detected