From 0f9e16add75e5d5de0463241120cf4584194b7e6 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 16 Apr 2026 03:18:10 +0200 Subject: Makes event array compression multi-threaded --- salis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'salis.py') diff --git a/salis.py b/salis.py index 9a615f5..85ad35a 100755 --- a/salis.py +++ b/salis.py @@ -81,7 +81,7 @@ option_list = [ ["p", "pre-cmd", "CMD", "shell command to wrap call to executable (e.g. gdb, time, valgrind, etc.)", None, False, str, [bench, load, new]], ["s", "seed", "SEED", "seed value for new simulation; a value of 0 disables cosmic rays; a value of -1 creates a random seed", 0, False, seed, [bench, new]], ["T", "keep-temp-dir", None, "delete temporary directory on exit", False, False, bool, [bench, load, new, serve]], - ["t", "thread-gap", "N", "memory gap between cores in bytes (may help reduce cache misses)", 0x100, False, inat, [bench, load, new]], + ["t", "thread-gap", "N", "memory gap between cores in bytes (may help reduce cache misses)", 0x100, False, inat, [bench, load, new, serve]], ["u", "ui", uis, "user interface", "curses", False, str, [load, new]], ["U", "update", None, "update vendors (call 'git commit' afterwards to track updated files, if any)", False, False, bool, [serve]], ["x", "no-compress", None, "do not compress save files (useful if 'zlib' is unavailable)", True, False, bool, [new]], @@ -222,6 +222,7 @@ if args.command in ["serve"]: sqlx_flags.update({*args.compiler_flags.split(), "-shared", "-fPIC", "-Icore"}) sqlx_defines.add(f"-DMVEC_SIZE={2 ** args.mvec_pow}ul") + sqlx_defines.add(f"-DTHREAD_GAP={args.thread_gap}") if arch_vars.mvec_loop: sqlx_defines.add("-DMVEC_LOOP") -- cgit v1.3