diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2026-04-16 03:18:10 +0200 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2026-04-16 03:18:10 +0200 |
| commit | 0f9e16add75e5d5de0463241120cf4584194b7e6 (patch) | |
| tree | ab8625b7c0194788c6a749a43424cdea6981558b /salis.py | |
| parent | d36b3f200dbaf19afd3b5e33f6a575961c471b72 (diff) | |
Makes event array compression multi-threaded
Diffstat (limited to 'salis.py')
| -rwxr-xr-x | salis.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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") |
