diff options
| author | enricotenuti <tenutz_27@outlook.it> | 2024-09-19 09:51:43 +0200 |
|---|---|---|
| committer | enricotenuti <tenutz_27@outlook.it> | 2024-09-19 09:51:43 +0200 |
| commit | 0478efe2875420236295450ba2d4d22dd5dd433e (patch) | |
| tree | fac0c76bd03ba75fe2aaf423c6d0f141aa51f44a /src/nissy.c | |
| parent | 7f78e56994a824fc8364c91032c1be4ee767ec41 (diff) | |
| download | nissy-core-0478efe2875420236295450ba2d4d22dd5dd433e.tar.gz nissy-core-0478efe2875420236295450ba2d4d22dd5dd433e.zip | |
pthread solver to fix
Diffstat (limited to '')
| -rw-r--r-- | src/nissy.c | 5 |
1 files changed, 3 insertions, 2 deletions
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( | |||
| 332 | LOG("gendata: could not parse options\n"); | 332 | LOG("gendata: could not parse options\n"); |
| 333 | ret = -1; | 333 | ret = -1; |
| 334 | } else { | 334 | } else { |
| 335 | ret = solve_h48(c, minmoves, maxmoves, maxsolutions, | 335 | ret = THREADS > 1 ? |
| 336 | data, solutions); | 336 | solve_h48_parent(c, minmoves, maxmoves, maxsolutions, data, solutions) : |
| 337 | solve_h48(c, minmoves, maxmoves, maxsolutions, data, solutions); | ||
| 337 | } | 338 | } |
| 338 | } else if (!strcmp(solver, "h48stats")) { | 339 | } else if (!strcmp(solver, "h48stats")) { |
| 339 | ret = solve_h48stats(c, maxmoves, data, solutions); | 340 | ret = solve_h48stats(c, maxmoves, data, solutions); |
