MCPcopy Create free account
hub / github.com/catboost/catboost / SelectRandomHost

Function SelectRandomHost

library/cpp/par/distr_tree.cpp:300–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298 }
299
300 int SelectRandomHost(const TVector<ui16>& execPlan) {
301 size_t ptr = RandomNumber(execPlan.size());
302 while (execPlan[ptr] >= N_GROUP_FIRST_CODE)
303 ptr = RandomNumber(execPlan.size());
304 return execPlan[ptr];
305 }
306
307 void ProjectExecPlan(TVector<ui16>* res, const TVector<bool>& selectedComps) {
308 for (int ptr = 0; ptr < res->ysize();) {

Callers 2

LaunchOpsMethod · 0.85
ReschedulePartRequestMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected