add lstech solver
This commit is contained in:
parent
b3130ab03b
commit
e8466070ec
@ -68,7 +68,7 @@ void light::diversity_workers() {
|
||||
workers[i]->configure("worker_index", i);
|
||||
workers[i]->configure("worker_number", OPT(threads));
|
||||
|
||||
if(rank == 1) {
|
||||
if(rank == 1 || solver_type = LSTECH) {
|
||||
workers[i]->configure("worker_seed", 0);
|
||||
} else {
|
||||
workers[i]->configure("worker_seed", rank);
|
||||
@ -113,7 +113,7 @@ void light::diversity_workers() {
|
||||
if (OPT(shuffle)) {
|
||||
workers[i]->configure("worker_index", i);
|
||||
workers[i]->configure("worker_number", OPT(threads));
|
||||
if(rank == num_procs - 1) {
|
||||
if(rank == num_procs - 1 || solver_type = LSTECH) {
|
||||
workers[i]->configure("worker_seed", 0);
|
||||
} else {
|
||||
workers[i]->configure("worker_seed", rank);
|
||||
@ -271,7 +271,10 @@ void light::seperate_groups() {
|
||||
int sat_procs = worker_procs / 8;
|
||||
int unsat_procs = worker_procs / 4;
|
||||
int default_procs = worker_procs - sat_procs - unsat_procs;
|
||||
|
||||
|
||||
if (rank == 2 || rank == sat_procs + 2 || rank == sat_procs + unsat_procs + 2)
|
||||
solver_type == LSTECH;
|
||||
|
||||
std::vector<int> tmp;
|
||||
// [1, sat_procs] for sat
|
||||
if(rank >= 1 && rank <= sat_procs) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user