From 0478efe2875420236295450ba2d4d22dd5dd433e Mon Sep 17 00:00:00 2001 From: enricotenuti Date: Thu, 19 Sep 2024 09:51:43 +0200 Subject: pthread solver to fix --- src/nissy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nissy.c') diff --git a/src/nissy.c b/src/nissy.c index 6bc4aea..5eeb457 100644 --- a/src/nissy.c +++ b/src/nissy.c @@ -332,8 +332,9 @@ nissy_solve( LOG("gendata: could not parse options\n"); ret = -1; } else { - ret = solve_h48(c, minmoves, maxmoves, maxsolutions, - data, solutions); + ret = THREADS > 1 ? + solve_h48_parent(c, minmoves, maxmoves, maxsolutions, data, solutions) : + solve_h48(c, minmoves, maxmoves, maxsolutions, data, solutions); } } else if (!strcmp(solver, "h48stats")) { ret = solve_h48stats(c, maxmoves, data, solutions); -- cgit v1.3