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