Home
last modified time | relevance | path

Searched refs:server_num_ (Results 1 – 22 of 22) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/fl/worker/
Dfl_worker.cc33 server_num_ = ps::PSContext::instance()->server_num(); in Run()
40 ps::PSContext::instance()->cluster_config().initial_server_num = server_num_; in Run()
42 << ", Server number:" << server_num_ << ", Scheduler ip:" << scheduler_ip_ in Run()
150 uint32_t FLWorker::server_num() const { return server_num_; } in server_num()
242 server_num_ = IntToUint(worker_node_->server_num()); in ProcessAfterScalingOut()
245 << server_num_ << ". Exit safemode."; in ProcessAfterScalingOut()
253 server_num_ = IntToUint(worker_node_->server_num()); in ProcessAfterScalingIn()
255 …ter scheduler scaling in, worker number is " << worker_num_ << ", server number is " << server_num_ in ProcessAfterScalingIn()
Dfl_worker.h97 server_num_(0), in FLWorker()
129 uint32_t server_num_; variable
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/fl/
Dfused_push_weight_kernel.h37 … : server_num_(0), indices_({}), weight_full_names_({}), fl_iteration_(0), total_iteration_(0) {} in FusedPushWeightKernel()
122 server_num_ = ps::PSContext::instance()->server_num(); in Init()
126 << ", server number is " << server_num_; in Init()
127 if (server_num_ == 0 || weight_full_names_.empty() || indices_.empty()) { in Init()
166 uint32_t server_num_; variable
Dfused_pull_weight_kernel.h39 … : server_num_(0), indices_({}), weight_full_names_({}), fl_iteration_(0), total_iteration_(0) {} in FusedPullWeightKernel()
135 server_num_ = ps::PSContext::instance()->server_num(); in Init()
139 << ", server number is " << server_num_; in Init()
140 if (server_num_ == 0 || weight_full_names_.empty() || indices_.empty()) { in Init()
194 uint32_t server_num_; variable
Dstart_fl_job_kernel.h74 server_num_ = fl::worker::FLWorker::GetInstance().server_num(); in Init()
80 target_server_rank_ = rank_id_ % server_num_; in Init()
115 uint32_t server_num_; variable
Dget_model_kernel.h104 server_num_ = fl::worker::FLWorker::GetInstance().server_num(); in Init()
110 target_server_rank_ = rank_id_ % server_num_; in Init()
153 uint32_t server_num_; variable
Dupdate_model_kernel.h86 server_num_ = fl::worker::FLWorker::GetInstance().server_num(); in Init()
92 target_server_rank_ = rank_id_ % server_num_; in Init()
161 uint32_t server_num_; variable
/third_party/mindspore/mindspore/ccsrc/fl/server/
Dcollective_ops_impl.cc26 server_num_ = ps::PSContext::instance()->initial_server_num(); in Initialize()
40 uint32_t rank_size = server_num_; in RingAllReduce()
142 uint32_t rank_size = server_num_; in ReduceBroadcastAllReduce()
219 uint32_t rank_size = server_num_; in AllReduce()
235 server_num_ = IntToUint(server_node_->server_num()); in ReInitForScaling()
237 << server_num_; in ReInitForScaling()
Dcollective_ops_impl.h54 CollectiveOpsImpl() : server_node_(nullptr), local_rank_(0), server_num_(0) {} in CollectiveOpsImpl()
69 uint32_t server_num_; variable
Ddistributed_metadata_store.h72 server_num_(0), in DistributedMetadataStore()
95 uint32_t server_num_; variable
Ddistributed_count_service.cc30 server_num_ = ps::PSContext::instance()->initial_server_num(); in Initialize()
180 server_num_ = IntToUint(server_node_->server_num()); in ReInitForScaling()
182 << server_num_; in ReInitForScaling()
331 for (uint32_t i = 1; i < server_num_; i++) { in TriggerFirstCountEvent()
357 for (uint32_t i = 1; i < server_num_; i++) { in TriggerLastCountEvent()
Ddistributed_metadata_store.cc29 server_num_ = ps::PSContext::instance()->initial_server_num(); in Initialize()
160 server_num_ = IntToUint(server_node_->server_num()); in ReInitForScaling()
162 << server_num_; in ReInitForScaling()
173 for (uint32_t i = 0; i < server_num_; i++) { in InitHashRing()
Dserver.h79 server_num_(0),
198 uint32_t server_num_; variable
Dserver.cc140 server_num_ = ps::PSContext::instance()->initial_server_num(); in InitServerContext()
142 if (encrypt_type == ps::kPWEncryptType && server_num_ > 1) { in InitServerContext()
143 …N) << "Only single server is supported for PW_ENCRYPT now, but got server_num is:." << server_num_; in InitServerContext()
169 … worker_num_, server_num_, task_executor_); in InitCommunicatorWithServer()
Ddistributed_count_service.h113 uint32_t server_num_; variable
/third_party/mindspore/mindspore/ccsrc/ps/core/
Dabstract_node.cc184 if (!CommUtil::ValidateRankId(node_role, rank_id, worker_num_, server_num_)) { in Send()
186 << ", the server num:" << server_num_ << ", the rank id:" << rank_id; in Send()
214 if (!CommUtil::ValidateRankId(node_role, rank_ids.at(it), worker_num_, server_num_)) { in Send()
216 … << ", the server num:" << server_num_ << ", the rank id:" << rank_ids.at(it); in Send()
248 if (!CommUtil::ValidateRankId(node_role, rank_id, worker_num_, server_num_)) { in Send()
250 << ", the server num:" << server_num_ << ", the rank id:" << rank_id; in Send()
307 if (!CommUtil::ValidateRankId(node_role, rank_ids.at(it), worker_num_, server_num_)) { in Send()
309 … << ", the server num:" << server_num_ << ", the rank id:" << rank_ids.at(it); in Send()
337 if (!CommUtil::ValidateRankId(node_role, rank_id, worker_num_, server_num_)) { in CollectiveSendAsync()
339 << ", the server num:" << server_num_ << ", the rank id:" << rank_id; in CollectiveSendAsync()
[all …]
Dabstract_node.h50 server_num_(-1), in AbstractNode()
244 int32_t server_num_; variable
/third_party/mindspore/mindspore/ccsrc/ps/
Dps_context.cc52 server_num_ = std::strtol(common::GetEnv(kEnvPServerNum).c_str(), nullptr, kBase); in SetPSEnable()
66 …cluster_config_ = std::make_unique<core::ClusterConfig>(worker_num_, server_num_, scheduler_host_,… in SetPSEnable()
137 uint32_t PSContext::initial_server_num() const { return server_num_; } in initial_server_num()
269 server_num_ = server_num; in set_server_num()
271 uint32_t PSContext::server_num() const { return server_num_; } in server_num()
Dworker.cc25 server_num_ = PSContext::instance()->initial_server_num(); in Run()
193 for (int64_t i = 0; i < server_num_; i++) { in AddEmbeddingTable()
194 size_t local_row_cnt = LongToSize(Util::LocalShard(row_count, i, server_num_)); in AddEmbeddingTable()
450 if (server_num_ == 0) { in AddKeyByHashMod()
453 key_to_server_id_[key] = static_cast<int64_t>(key % server_num_); in AddKeyByHashMod()
835 partition->resize(LongToSize(server_num_)); in RoundRobinPartitioner()
870 partition->resize(LongToSize(server_num_)); in WorkerInitEmbeddingPartitioner()
932 partition->resize(LongToSize(server_num_)); in BroadcastPartitioner()
933 for (size_t i = 0; i < LongToSize(server_num_); i++) { in BroadcastPartitioner()
Dps_context.h197 server_num_(0), in PSContext()
236 uint32_t server_num_; variable
Dworker.h84 Worker() : server_num_(-1), running_(false), key_cnt_(0) {} in Worker()
129 int64_t server_num_; variable
/third_party/mindspore/mindspore/ccsrc/ps/core/communicator/
Dtcp_communicator.h68 server_num_(0), in TcpCommunicator()
113 uint32_t server_num_; variable