| 628 | } |
| 629 | |
| 630 | port::Status GpuExecutor::WaitForEvent(Stream* stream, Event* event) { |
| 631 | if (GpuDriver::WaitStreamOnEvent(context_, AsGpuStream(stream)->gpu_stream(), |
| 632 | AsGpuEvent(event)->gpu_event())) { |
| 633 | return port::Status::OK(); |
| 634 | } else { |
| 635 | return port::Status{ |
| 636 | port::error::INTERNAL, |
| 637 | absl::StrFormat("error recording waiting for ROCM event on stream %p", |
| 638 | stream)}; |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | Event::Status GpuExecutor::PollForEventStatus(Event* event) { |
| 643 | return AsGpuEvent(event)->PollForStatus(); |
nothing calls this directly
no test coverage detected