| 784 | } |
| 785 | |
| 786 | port::Status GpuExecutor::WaitForEvent(Stream* stream, Event* event) { |
| 787 | if (GpuDriver::WaitStreamOnEvent(context_, AsGpuStream(stream)->gpu_stream(), |
| 788 | AsGpuEvent(event)->gpu_event())) { |
| 789 | return port::Status::OK(); |
| 790 | } else { |
| 791 | return port::Status( |
| 792 | port::error::INTERNAL, |
| 793 | absl::StrFormat("error recording waiting for CUDA event on stream %p", |
| 794 | stream)); |
| 795 | } |
| 796 | } |
| 797 | |
| 798 | Event::Status GpuExecutor::PollForEventStatus(Event* event) { |
| 799 | return AsGpuEvent(event)->PollForStatus(); |
nothing calls this directly
no test coverage detected