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