diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-14 11:59:22 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-12-14 11:59:22 +0100 |
| commit | 4a88a686d5e08404080ed6954b70c0db252aa220 (patch) | |
| tree | c1fb469d5a2a68c8e4651ad7837d3dd6fe2ff93e /src/nissy.h | |
| parent | 9ac266c76f39620d8343e46ca41cb09d1534384c (diff) | |
| download | nissy-core-4a88a686d5e08404080ed6954b70c0db252aa220.tar.gz nissy-core-4a88a686d5e08404080ed6954b70c0db252aa220.zip | |
Allow choosing number of threads when calling solve()
Diffstat (limited to 'src/nissy.h')
| -rw-r--r-- | src/nissy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nissy.h b/src/nissy.h index 8394fad..94c604c 100644 --- a/src/nissy.h +++ b/src/nissy.h | |||
| @@ -259,6 +259,9 @@ Parameters: | |||
| 259 | maxsols - The maximum number of solutions. | 259 | maxsols - The maximum number of solutions. |
| 260 | optimal - If set to a non-negative value, the maximum number of moves | 260 | optimal - If set to a non-negative value, the maximum number of moves |
| 261 | above the optimal solution length. | 261 | above the optimal solution length. |
| 262 | threads - The number of threads to use. Must be less than or equalt to | ||
| 263 | the value of the compile-time constant THREADS. If set to 0, | ||
| 264 | the default value THREADS will be used. | ||
| 262 | data_size - The size of the data buffer. | 265 | data_size - The size of the data buffer. |
| 263 | data - The data for the solver. Can be computed with gendata. | 266 | data - The data for the solver. Can be computed with gendata. |
| 264 | sols_size - The size of the solutions buffer. | 267 | sols_size - The size of the solutions buffer. |
| @@ -286,6 +289,7 @@ nissy_solve( | |||
| 286 | unsigned maxmoves, | 289 | unsigned maxmoves, |
| 287 | unsigned maxsolutions, | 290 | unsigned maxsolutions, |
| 288 | int optimal, | 291 | int optimal, |
| 292 | int threads, | ||
| 289 | unsigned long long data_size, | 293 | unsigned long long data_size, |
| 290 | const char data[data_size], | 294 | const char data[data_size], |
| 291 | unsigned sols_size, | 295 | unsigned sols_size, |
