Returns the GpuStreamHandle value for passing to the CUDA API. Precond: this GpuStream has been allocated (otherwise passing a nullptr into the NVIDIA library causes difficult-to-understand faults).
| 70 | // Precond: this GpuStream has been allocated (otherwise passing a nullptr |
| 71 | // into the NVIDIA library causes difficult-to-understand faults). |
| 72 | GpuStreamHandle gpu_stream() const { |
| 73 | DCHECK(gpu_stream_ != nullptr); |
| 74 | return const_cast<GpuStreamHandle>(gpu_stream_); |
| 75 | } |
| 76 | |
| 77 | // TODO(timshen): Migrate away and remove this function. |
| 78 | GpuStreamHandle cuda_stream() const { return gpu_stream(); } |
no outgoing calls
no test coverage detected