aboutsummaryrefslogtreecommitdiff
path: root/tools/gendata_h48/gendata_h48.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-07-20 22:51:23 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-07-20 22:51:23 +0200
commitf64a5a67a37015bd5066efd9b1edb6ac3e0b7a97 (patch)
tree52984e67e1cde946c58a8e266a88a0dafe85419a /tools/gendata_h48/gendata_h48.c
parent5727f06c5694a4831881322876e3ba4d8ce3b743 (diff)
downloadnissy-core-f64a5a67a37015bd5066efd9b1edb6ac3e0b7a97.tar.gz
nissy-core-f64a5a67a37015bd5066efd9b1edb6ac3e0b7a97.zip
Fixed gendata tool and cleaned up some stuff
Diffstat (limited to '')
-rw-r--r--tools/gendata_h48/gendata_h48.c (renamed from tools/01_gendata_h48/benchmark_gendata_h48.c)16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/01_gendata_h48/benchmark_gendata_h48.c b/tools/gendata_h48/gendata_h48.c
index efb6f6f..c8a6d12 100644
--- a/tools/01_gendata_h48/benchmark_gendata_h48.c
+++ b/tools/gendata_h48/gendata_h48.c
@@ -1,10 +1,10 @@
1#include "../timerun.h" 1#include "../timerun.h"
2#include "../../src/cube.h" 2#include "../../src/cube.h"
3 3
4#define MAXDEPTH 10 4#define MAXDEPTH 20
5#define HVALUE 2 5#define HVALUE 0
6#define OPTIONS "2;10" 6#define OPTIONS "0;20"
7#define LONGOPTIONS "h = 2, max depth = 10" 7#define LONGOPTIONS "h = 0, max depth = 20"
8 8
9#define COCSEPSIZE 1119792 9#define COCSEPSIZE 1119792
10#define ETABLESIZE(h) (((3393 * 495 * 70) >> 1) << (size_t)(h)) 10#define ETABLESIZE(h) (((3393 * 495 * 70) >> 1) << (size_t)(h))
@@ -16,7 +16,7 @@ void run(void) {
16 int i; 16 int i;
17 int64_t s; 17 int64_t s;
18 18
19 s = nissy_gendata("H48", OPTIONS, buf); 19 s = nissy_gendata("h48", OPTIONS, buf);
20 20
21 if (s == -1) { 21 if (s == -1) {
22 printf("Error generating table\n"); 22 printf("Error generating table\n");
@@ -28,10 +28,12 @@ void run(void) {
28 } 28 }
29} 29}
30 30
31int main() { 31int main(void) {
32 int64_t size; 32 int64_t size;
33 33
34 size = nissy_datasize("H48", OPTIONS); 34 nissy_setlogger(log_stderr);
35
36 size = nissy_datasize("h48", OPTIONS);
35 if (size == -1) { 37 if (size == -1) {
36 printf("gendata_h48 benchmark: error in datasize\n"); 38 printf("gendata_h48 benchmark: error in datasize\n");
37 return 1; 39 return 1;

Generated with cgit - Back to sebastiano.tronto.net