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

Method PollForEventStatus

tensorflow/stream_executor/host/host_gpu_executor.cc:242–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242Event::Status HostExecutor::PollForEventStatus(Event *event) {
243 absl::Notification &notification = *AsHostEvent(event)->notification();
244 return notification.HasBeenNotified() ? Event::Status::kComplete
245 : Event::Status::kPending;
246}
247
248bool HostExecutor::StartTimer(Stream *stream, Timer *timer) {
249 dynamic_cast<HostTimer *>(timer->implementation())->Start(stream);

Callers

nothing calls this directly

Calls 2

AsHostEventFunction · 0.85
HasBeenNotifiedMethod · 0.80

Tested by

no test coverage detected