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

Method LocalExec

library/cpp/par/par_exec.h:475–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473 return MasterGuid;
474 }
475 void LocalExec(int id) override {
476 // do map task locally
477 const TJobParams& params = JobRequest->Descr.ExecList[id];
478 if (NeedResult() && AtomicGet(MapResult) == nullptr) {
479 int partId = MapJob2PartId[id];
480 if (partId == -1 || !PartCompleted[partId]) {
481 TVector<char>& dataBuf = LocalMapBuf.ResultData[id];
482 JobRequest->Descr.GetParam(params.ParamId, &dataBuf);
483 Cmds.Cmds[params.CmdId]->ExecAsync(LocalUserContext.Get(), params.HostId, &dataBuf, this, id);
484 } else
485 DoneLocalMapTask();
486 }
487 }
488 void StartReduce() {
489 auto* const mapResult = AtomicGet(MapResult);
490 TReduceExec::Launch(JobRequest.Get(), CompleteNotify.Get(), &mapResult->ResultData, &mapResult->ResultHasData);

Callers

nothing calls this directly

Calls 4

GetParamMethod · 0.80
AtomicGetFunction · 0.50
ExecAsyncMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected