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

Method ThenExecute

tensorflow/core/common_runtime/gpu/gpu_event_mgr.h:72–76  ·  view source on GitHub ↗

Execute func when all pending stream actions have completed. func must be brief and non-blocking since it executes in the one thread used for all such callbacks and also buffer deletions.

Source from the content-addressed store, hash-verified

70 // func must be brief and non-blocking since it executes in the one
71 // thread used for all such callbacks and also buffer deletions.
72 inline void ThenExecute(se::Stream* stream, std::function<void()> func) {
73 mutex_lock l(mu_);
74 QueueFunc(stream, std::move(func));
75 PollEvents(stream);
76 }
77
78 private:
79 friend class TEST_EventMgr;

Callers 10

RunAsyncPartsMethod · 0.45
RunAsyncPartsMethod · 0.45
SetProtoFromGPUMethod · 0.45
DeviceToDeviceCopyMethod · 0.45
CopyGPUTensorToCPUMethod · 0.45
CopyCPUTensorToGPUMethod · 0.45
gpu_device.ccFile · 0.45
TESTFunction · 0.45
DoAddChainMethod · 0.45
BM_no_opsFunction · 0.45

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.36
DoAddChainMethod · 0.36
BM_no_opsFunction · 0.36