• Andrey Filippov's avatar
    CLAUDE: fix rectilinear inter-scene corr buffer sizing (JNA) — num_pairs=3 · b6a986ac
    Andrey Filippov authored
    Second JNA-mode failure after the Phase-1 NPE fix: cudaErrorIllegalAddress at
    tp_utils.cu:142 (image upload), actually a DEFERRED fault from the inter-scene
    correlate2D_inter kernel writing out of bounds.
    
    Root cause: GpuQuadJna.ensureRbgCorr sized the native correlation buffers via
    Correlation2d.getNumPairs(num_cams). For the rectilinear single-camera config
    num_cams=1 -> getNumPairs(1)=0 -> tp_proc_setup_rbg_corr allocates zero-size
    gpu_corrs_td / gpu_corrs / gpu_corr_indices, so the inter-scene correlation
    wrote past them -> illegal address, surfacing (sticky) at the next CUDA call.
    
    Fix: mirror the JCuda oracle, whose rectilinear ctor hardcodes num_pairs=3
    (GpuQuad.java:732) for exactly the inter-scene case ->
      int num_pairs = rectilinear ? 3 : Correlation2d.getNumPairs(num_cams);
    
    Java-only; libtileproc.so untouched. mvn compile clean.
    Co-Authored-By: 's avatarClaude Opus 4.8 (1M context) <noreply@anthropic.com>
    b6a986ac
Name
Last commit
Last update
..
calibration Loading commit data...
cameras Loading commit data...
common Loading commit data...
correction Loading commit data...
cuas Loading commit data...
dct Loading commit data...
gpu Loading commit data...
ims Loading commit data...
jp4 Loading commit data...
lwir Loading commit data...
mcp Loading commit data...
orthomosaic Loading commit data...
readers Loading commit data...
tensorflow Loading commit data...
tileprocessor Loading commit data...
vegetation Loading commit data...
x3d/export Loading commit data...