MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / WaitForEvent

Method WaitForEvent

tensorflow/stream_executor/rocm/rocm_gpu_executor.cc:630–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630port::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
642Event::Status GpuExecutor::PollForEventStatus(Event* event) {
643 return AsGpuEvent(event)->PollForStatus();

Callers

nothing calls this directly

Calls 4

AsGpuStreamFunction · 0.85
gpu_streamMethod · 0.80
gpu_eventMethod · 0.80
AsGpuEventFunction · 0.70

Tested by

no test coverage detected