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

Method WaitForEvent

tensorflow/stream_executor/host/host_gpu_executor.cc:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234port::Status HostExecutor::WaitForEvent(Stream *stream, Event *event) {
235 std::shared_ptr<absl::Notification> notification =
236 AsHostEvent(event)->notification();
237 AsHostStream(stream)->EnqueueTask(
238 [notification]() { notification->WaitForNotification(); });
239 return port::Status::OK();
240}
241
242Event::Status HostExecutor::PollForEventStatus(Event *event) {
243 absl::Notification &notification = *AsHostEvent(event)->notification();

Callers

nothing calls this directly

Calls 4

AsHostEventFunction · 0.85
AsHostStreamFunction · 0.85
EnqueueTaskMethod · 0.45
WaitForNotificationMethod · 0.45

Tested by

no test coverage detected