| 33 | } |
| 34 | |
| 35 | void GpuStream::Destroy() { |
| 36 | if (completed_event_ != nullptr) { |
| 37 | port::Status status = |
| 38 | GpuDriver::DestroyEvent(parent_->gpu_context(), &completed_event_); |
| 39 | if (!status.ok()) { |
| 40 | LOG(ERROR) << status.error_message(); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | GpuDriver::DestroyStream(parent_->gpu_context(), &gpu_stream_); |
| 45 | } |
| 46 | |
| 47 | bool GpuStream::IsIdle() const { |
| 48 | return GpuDriver::IsStreamIdle(parent_->gpu_context(), gpu_stream_); |
nothing calls this directly
no test coverage detected