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

Method StartAbort

tensorflow/core/distributed_runtime/base_rendezvous_mgr.cc:843–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841}
842
843void BaseRemoteRendezvous::StartAbort(const Status& s) {
844 CHECK(!s.ok());
845 // Use a "derived" status as the status for the rendezvous. Derived
846 // status messages are ignored when aggregating errors across devices: this
847 // allows us to prefer our original status message over any cancellation
848 // related errors.
849 Status derived_status = StatusGroup::MakeDerived(s);
850
851 local_->StartAbort(derived_status);
852 {
853 // Aborts all active RecvTensor calls.
854 mutex_lock l(mu_);
855 if (status_.ok()) {
856 status_ = derived_status;
857 for (auto& entry : active_) {
858 entry.first->StartAbort(derived_status);
859 entry.second();
860 }
861 active_.clear();
862 }
863 flow_control_num_ = 0;
864 flow_control_counters_.clear();
865 }
866 flow_control_cv_.notify_all();
867}
868
869void BaseRemoteRendezvous::RegisterCall(BaseRecvTensorCall* call,
870 const Rendezvous::Args& args) {

Callers 5

StartAbortRendevousFunction · 0.45
RegisterCallMethod · 0.45
AbortStepMethod · 0.45
RecvBufAsyncMethod · 0.45
TEST_FFunction · 0.45

Calls 4

secondMethod · 0.80
notify_allMethod · 0.80
okMethod · 0.45
clearMethod · 0.45

Tested by 2

RecvBufAsyncMethod · 0.36
TEST_FFunction · 0.36