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

Method RecordEvent

tensorflow/stream_executor/host/host_gpu_executor.cc:224–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224port::Status HostExecutor::RecordEvent(Stream *stream, Event *event) {
225 std::shared_ptr<absl::Notification> notification =
226 AsHostEvent(event)->notification();
227 AsHostStream(stream)->EnqueueTask([notification]() {
228 CHECK(!notification->HasBeenNotified());
229 notification->Notify();
230 });
231 return port::Status::OK();
232}
233
234port::Status HostExecutor::WaitForEvent(Stream *stream, Event *event) {
235 std::shared_ptr<absl::Notification> notification =

Callers

nothing calls this directly

Calls 5

AsHostEventFunction · 0.85
AsHostStreamFunction · 0.85
HasBeenNotifiedMethod · 0.80
EnqueueTaskMethod · 0.45
NotifyMethod · 0.45

Tested by

no test coverage detected