FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add support for parallel BAB by anovoselcev · Pull Request #67 · unison-code/unison · GitHub

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .cpp  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
13 changes: 12 additions & 1 deletion src/solvers/gecode/procedures/localprocedures.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,19 @@ solve_generic_portfolio(LocalModel * base, GIST_OPTIONS * lo, int iteration) {
localOptions.threads = n;
}

SEBs sebs;

for (unsigned int i = 0; i < strategies; ++i){
Search::Option o;
unsigned int threads = base->options->portfolio_threads() / strategies;
if (threads == 0) threads = 1;
o.threads = threads;
o.stop = localStop;
sebs << bab<LocalModel>(o);
}

// Local portfolio meta-engine
PBS<LocalModel, BAB> e(l, localOptions);
PBS<LocalModel, BAB> e(l, sebs, localOptions);

// Solve the local problem for the given search strategy
bool found_local_solution = false;
Expand Down

Back | FazBrowse Home | New Git URL