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

Method GetCurrentStream

csrc/fp_quantizer/includes/fp_context.h:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 curandGenerator_t& GetRandGenerator() { return _gen; }
44
45 cudaStream_t GetCurrentStream()
46 {
47 // get current pytorch stream.
48 cudaStream_t stream = at::cuda::getCurrentCUDAStream();
49 return stream;
50 }
51
52 std::pair<uint64_t, uint64_t> IncrementOffset(uint64_t offset_inc)
53 {

Callers

nothing calls this directly

Calls 1

getCurrentCUDAStreamFunction · 0.85

Tested by

no test coverage detected