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

Function ParallelFor

library/cpp/threading/local_executor/local_executor.h:280–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278
279 template <typename TBody>
280 inline void ParallelFor(ILocalExecutor& executor, ui32 from, ui32 to, TBody&& body) {
281 ILocalExecutor::TExecRangeParams params(from, to);
282 params.SetBlockCountToThreadCount();
283 executor.ExecRange(std::forward<TBody>(body), params, TLocalExecutor::WAIT_COMPLETE);
284 }
285
286 template <typename TBody>
287 inline void ParallelFor(ui32 from, ui32 to, TBody&& body) {

Callers 15

TFinalCtrsCalcerMethod · 0.85
CalcMethod · 0.85
ForEachMethod · 0.85
MapVectorFunction · 0.85
DoReduceMethod · 0.85
MapGenericCalcScoreFunction · 0.85
CalcDersForQueriesMethod · 0.85
CalcDersForQueriesMethod · 0.85
CalcDersForQueriesMethod · 0.85

Calls 1

ExecRangeMethod · 0.45

Tested by 4

Y_UNIT_TESTFunction · 0.68
CalcRefMatricesFunction · 0.68
SolveCPUFunction · 0.68
CalcRefSumsFunction · 0.68