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

Method HostCallback

tensorflow/stream_executor/host/host_gpu_executor.cc:170–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170bool HostExecutor::HostCallback(Stream *stream,
171 std::function<port::Status()> callback) {
172 AsHostStream(stream)->EnqueueTask([callback]() {
173 port::Status s = callback();
174 if (!s.ok()) {
175 LOG(WARNING) << "Host callback failed: " << s;
176 }
177 });
178 return true;
179}
180
181bool HostExecutor::AllocateStream(Stream *stream) { return true; }
182

Callers

nothing calls this directly

Calls 4

AsHostStreamFunction · 0.85
callbackFunction · 0.85
EnqueueTaskMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected