diff options
Diffstat (limited to 'src/pruning.c')
| -rw-r--r-- | src/pruning.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pruning.c b/src/pruning.c index d484a12..869110f 100644 --- a/src/pruning.c +++ b/src/pruning.c | |||
| @@ -135,6 +135,18 @@ genptable(PruneData *pd, int nthreads) | |||
| 135 | return; | 135 | return; |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | if (nthreads < 4) { | ||
| 139 | fprintf(stderr, | ||
| 140 | "--- Warning ---\n" | ||
| 141 | "You are using only %d threads to generate the pruning" | ||
| 142 | "tables. This can take a while." | ||
| 143 | "Unless you did this intentionally, you should re-run" | ||
| 144 | "this command with `-t 4' or more.\n" | ||
| 145 | "---------------\n\n", nthreads | ||
| 146 | ); | ||
| 147 | } | ||
| 148 | |||
| 149 | |||
| 138 | /* For the first steps we proceed the same way for compact and not */ | 150 | /* For the first steps we proceed the same way for compact and not */ |
| 139 | compact = pd->compact; | 151 | compact = pd->compact; |
| 140 | pd->compact = false; | 152 | pd->compact = false; |
| @@ -144,6 +156,7 @@ genptable(PruneData *pd, int nthreads) | |||
| 144 | fprintf(stderr, "Cannot load %s, generating it with %d threads\n", | 156 | fprintf(stderr, "Cannot load %s, generating it with %d threads\n", |
| 145 | pd->filename, nthreads); | 157 | pd->filename, nthreads); |
| 146 | 158 | ||
| 159 | |||
| 147 | memset(pd->ptable, ~(uint8_t)0, ptablesize(pd)*sizeof(entry_group_t)); | 160 | memset(pd->ptable, ~(uint8_t)0, ptablesize(pd)*sizeof(entry_group_t)); |
| 148 | 161 | ||
| 149 | ptable_update(pd, (Cube){0}, 0); | 162 | ptable_update(pd, (Cube){0}, 0); |
