CLAUDE: JNA export tp_proc_exec_consolidate - on-device TD consolidation chain
Wire the frozen v1 chain (index_consolidate -> consolidate_oob ->
clt_average_sensors_list) into the production JNA surface (roadmap 2c ->
step 4 JNA hookup, Andrey's ruling: JNA-only, no JCuda launch code):
- tp_jna.cpp: tp_consolidate.h/.cu added to the NVRTC module (23 kernels);
new export tp_proc_exec_consolidate = host orchestration of the chain on
the RESIDENT per-cam CLT (contiguous DtoD gather, no D2H/H2D of TD data;
only the flattened task streams cross the boundary); average lands in the
cam-0 slot (what the single conj-multiply correlates); lazy scratch,
freed in tp_proc_destroy; stats {pairs, surviving tiles, misaligned}.
- tp_consolidate.h/.cu: JCUDA include guards (NVRTC concatenation has no
include paths) + NAN/INFINITY fallbacks (NVRTC has no math.h macros).
- jna/test_proc_consolidate.cu: standalone validation of the export vs the
real-scene avg_td_oob oracle case - PASS bit-exact (max|diff|=0,
5120 pairs -> 5056 tiles == oracle, 0 misaligned).
Regressions: tests_bin/test_avg_td, test_avg_td_oob PASS at tol 0 after
the guard changes; module smoke = 23/23 kernels resolved.
Co-authored-by:
Claude Fable 5 <noreply@anthropic.com>
Showing
jna/test_proc_consolidate.cu
0 → 100644
Please register or sign in to comment