aboutsummaryrefslogtreecommitdiff
path: root/salis.py
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-04-16 03:18:10 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-04-16 03:18:10 +0200
commit0f9e16add75e5d5de0463241120cf4584194b7e6 (patch)
treeab8625b7c0194788c6a749a43424cdea6981558b /salis.py
parentd36b3f200dbaf19afd3b5e33f6a575961c471b72 (diff)
Makes event array compression multi-threaded
Diffstat (limited to 'salis.py')
-rwxr-xr-xsalis.py3
1 files changed, 2 insertions, 1 deletions
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")