WARP CORE BENCH v1.0.8 - COMMAND-LINE BENCHMARKS
The CLI runs the CPU, CUDA and Vulkan benchmarks and saves scores locally.
No UAC/elevation required.

BUILD
Extract the whole source package into a separate folder. Run BUILD_AND_SIGN.cmd
with your normal Windows/VS2022/PhysX/CUDA/Vulkan setup and signing account.
Output: artifacts/publish/WarpCoreBench.exe
Portable ZIP: artifacts/WarpCoreBench_v1.0.8_PORTABLE.zip

CLI (one complete scoring session per invocation)
  --cli --help
  --cli --version
  --cli --benchmark cpu --profile r2 --passes 10 --output "C:\WCB\cpu_test01"
  --cli --benchmark cuda --output "C:\WCB\cuda_test01"
  --cli --benchmark vulkan --output "C:\WCB\vk_test01"
CPU profile: r1/r2; passes: 5/10/25. CUDA: BOX150K five passes. Vulkan: 8K three
runs. Every --output must name a NEW directory; existing results are refused.

MOOBENCH
v0.89 supports plain Add App with manual arguments. The dedicated Warp Core setup
window and score reader are in the author's v0.90-series integration builds.
Program: select this build's WarpCoreBench.exe.
Arguments, for example:
  --cli --benchmark cpu --profile r2 --passes 10 --output "C:\WCB\cpu_{date}_{time}_{run}"
  --cli --benchmark cuda --output "C:\WCB\cuda_{date}_{time}_{run}"
  --cli --benchmark vulkan --output "C:\WCB\vk_{date}_{time}_{run}"
Runs in a row: choose your number of complete sessions. Keep cooldown/settings
constant. Save console output: warpcore_{date}_{time}_{run}.txt
MooBench expands placeholders; Warp Core does not expand braces. Frame capture,
macros, live output window and Powmon are not required.

RESULT CONTRACT
cli_build=1.0.8-CLI-1; cli_result_format=1
stdout final result is delimited by result_begin / result_end, alone on lines.
Existing keys benchmark/status/score/score_unit/spread_percent are unchanged.
CLI_RESULT.txt carries the same final keys without delimiters. An unfinished
report includes benchmark/protocol plus IN_PROGRESS and score=WITHHELD.
CPU pass= and GPU free-text progress= remain; all backends also emit
progress_completed / progress_total / progress_message. Values count completed
internal attempts, not necessarily an accepted score. Stdout is flushed on each
write using std::unitbuf. Errors go to stderr. Numeric formatting uses '.' .
Native GPU report folders use UTC; MooBench's outer date/time names may be local.

EXIT CODES
0 accepted local score; 2 invalid arguments; 3 score withheld;
1 execution/report error (including an existing --output directory).
A force-killed run leaves IN_PROGRESS / WITHHELD and no complete result block.
Never treat that as a score. Graceful cancellation signaling is not implemented.

RUNTIME STORAGE
The single EXE still extracts and verifies its payload per launch, entirely
BEFORE the benchmark process starts. It is not in the measured simulation time.
Normal shutdown removes runtime files. Next launch reclaims abandoned marked
runtime folders, protecting live ownership locks and busy/unsafe trees.
Old unmarked Test 1 runtime folders require expected payload plus age >=24h.
If the final run is killed and Warp Core is never started again, its runtime can
remain in %LOCALAPPDATA%\WarpCoreBench\portable-runtime . With ALL Warp Core
instances stopped, those runtime-only folders may be removed manually; preserve
score/report directories elsewhere in WarpCoreBench. Reusable caching is deferred.

SCORING
Physics geometry, counts, dt, solver settings and score formulas are retained.
CPU R1 and R2 differ and must be compared separately; each uses two chambers of
5000 bodies (10000 total). CUDA displays median scene steps/s *100 points.
CLI has no viewer; compare matching protocols/pass counts AND execution modes
until GUI/CLI equivalence is established.

1080 TI / TITAN V DIAGNOSTIC TEST
Use the CUDA button normally (no CLI required), or one CUDA CLI invocation.
Send BOX_RUN_01.txt and BOX_SCORE_RESULT.txt from that session. New diagnostic
fields record phase, 1-based step, completed steps, fetchResults error state,
compiled PhysX SDK version, loaded PhysX/driver DLL paths and file versions,
and bounded detailed PhysX callback messages with code/source location.
Keep the same driver/settings for the first comparison. This adds evidence;
it does not claim to fix old-GPU compatibility. Full diagnostic serialization
and DLL metadata collection occur outside the measured interval; per-step
in-memory phase/error bookkeeping remains in the worker.
