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

Method WaitForEvent

tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:786–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786port::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
798Event::Status GpuExecutor::PollForEventStatus(Event* event) {
799 return AsGpuEvent(event)->PollForStatus();

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected