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

Method StartAbort

tensorflow/core/common_runtime/ring_alg.cc:271–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void RingAlg::StartAbort(const Status& s) {
272 // In abort mode we stop issuing additional ProvideBuf
273 // and ConsumeBuf calls, but we need to wait for all of the
274 // outstanding callbacks to be invoked before quitting.
275 bool abort_started = false;
276 {
277 mutex_lock l(status_mu_);
278 if (status_.ok()) {
279 LOG(ERROR) << "Aborting Ring" << name_ << " with " << s;
280 abort_started = true;
281 status_.Update(s);
282 }
283 }
284 // If this is the initial entry to abort mode then invoke StartAbort
285 // on the CollectiveExecutor that invoked us. That should start
286 // cancellation on all of the outstanding CollectiveRemoteAccess
287 // actions.
288 if (abort_started) {
289 col_ctx_->col_exec->StartAbort(s);
290 }
291}
292
293void RingAlg::Finish(bool ok) {
294 if (ok) {

Callers 9

NodeDoneMethod · 0.45
FinishMethod · 0.45
TEST_FFunction · 0.45
SendPRunInputsMethod · 0.45
RecvPRunOutputsMethod · 0.45
~RunStateMethod · 0.45
WhenDoneMethod · 0.45
TEST_FFunction · 0.45
MaybeFailMethod · 0.45

Calls 2

okMethod · 0.45
UpdateMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
TEST_FFunction · 0.36
MaybeFailMethod · 0.36