From d8a94976ebad9c55aca6b0443c5f92d892e12dd0 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 9 Dec 2021 08:36:06 +0100 Subject: Fixed genptable for small tables and tables that do not use symmetry --- nissy | Bin 169176 -> 169184 bytes src/pruning.c | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nissy b/nissy index c1975de..6f3c748 100755 Binary files a/nissy and b/nissy differ diff --git a/src/pruning.c b/src/pruning.c index f61912c..8cfa582 100644 --- a/src/pruning.c +++ b/src/pruning.c @@ -1,6 +1,7 @@ #include "pruning.h" /* Chunks for multithreading */ +/* TODO: try smaller */ #define NCHUNKS 100000 static int findchunk(PruneData *pd, int nchunks, uint64_t i); @@ -114,7 +115,7 @@ genptable(PruneData *pd, int nthreads) } pd->generated = true; - nchunks = MIN(pd->coord->max, NCHUNKS); + nchunks = MIN(pd->coord->max/2, NCHUNKS); fprintf(stderr, "Cannot load %s, generating it " "with %d threads and %d chunks\n", pd->filename, nthreads, nchunks); @@ -193,6 +194,9 @@ genptable_fixnasty(PruneData *pd, int d) Cube c, cc; Trans t[NTRANS]; + if (pd->coord->trans == NULL) + return; + for (i = 0; i < pd->coord->max; i++) { if (ptableval_index(pd, i) == d) { n = pd->coord->trans(i, t); -- cgit v1.3