Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel process features #2216

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
catboost.Pool benchmark fails with segmentation error
  • Loading branch information
NEvOlll committed Dec 15, 2022
commit 4376adfcf08b73a96f6090d2103fd780b22feb75
8 changes: 4 additions & 4 deletions catboost/python-package/catboost/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ void CallInParallel(NPar::ILocalExecutor* executor, void(*callback) (int block_i
auto task = [&](int id) {
callback(id);
};
//executor->ExecRange(task, 0, block_count, NPar::TLocalExecutor::WAIT_COMPLETE);
for (size_t id = 0; id != block_count; ++id) {
task(id);
}
executor->ExecRange(task, 0, block_count, NPar::TLocalExecutor::WAIT_COMPLETE);
// for (size_t id = 0; id != block_count; ++id) {
// task(id);
// }
}