Skip to content

Commit

Permalink
parallel,cores: set default to 2
Browse files Browse the repository at this point in the history
Always try to use 2 cores.

Signed-off-by: Norbert Manthey <[email protected]>
  • Loading branch information
conp-solutions committed Mar 23, 2023
1 parent 6410ca3 commit 532dbe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
- uses: actions/checkout@v1

- name: mergesat build
run: make BUILD_TYPE=simp d r p sh lr ld lp lsh
run: make d r p sh lr ld lp lsh

- name: Check working help output
run: ./build/release/bin/mergesat --help

- name: run CI script
env:
Expand Down
2 changes: 1 addition & 1 deletion minisat/parallel/ParSolver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using namespace MERGESAT_NSPACE;
static const char *_cat = "PAR";

static IntOption
opt_cores(_cat, "cores", "Number of solvers to use, 0 means each CPU, < 0 use CPU/-X", 1, IntRange(INT32_MIN, INT32_MAX));
opt_cores(_cat, "cores", "Number of solvers to use, 0 means each CPU, < 0 use CPU/-X", 2, IntRange(INT32_MIN, INT32_MAX));
static IntOption
opt_min_cores(_cat, "min-auto-cores", "Only use parallelism if more than the given number of cores are available", 4, IntRange(1, INT32_MAX));
static BoolOption opt_use_diversify(_cat, "diversify", "Diversify parallel configurations", true);
Expand Down

0 comments on commit 532dbe1

Please sign in to comment.