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

Method EnqueueTask

tensorflow/stream_executor/host/host_stream.cc:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51bool HostStream::EnqueueTask(std::function<void()> fn) {
52 CHECK(fn != nullptr);
53 absl::MutexLock lock(&mu_);
54 work_queue_.push(std::move(fn));
55 return true;
56}
57
58bool HostStream::WorkAvailable() { return !work_queue_.empty(); }
59

Callers 9

MemcpyMethod · 0.45
MemcpyDeviceToDeviceMethod · 0.45
MemZeroMethod · 0.45
MemsetMethod · 0.45
Memset32Method · 0.45
HostCallbackMethod · 0.45
RecordEventMethod · 0.45
WaitForEventMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected