• Andrey Filippov's avatar
    CLAUDE: add tp_proc_set_corr_indices_td (TD->PD re-upload for JNA CUAS) · 54f134b1
    Andrey Filippov authored
    Inverse of tp_proc_get_corr_indices/get_corr_td: uploads host-built per-pair TD
    corr indices + data back to the device (gpu_corr_indices / gpu_num_corr_tiles /
    gpu_corrs_td, pitched) and sets last_num_corr_tiles so the following
    corr2d_normalize + get_corr2d use the right count.
    
    Backs GpuQuad.setCorrIndicesTdData (TDCorrTile.convertTDtoPD) on the JNA
    rectilinear CUAS path, which previously fell through to base JCuda and NPE'd on
    a null device pointer. Buffers are sized num_pairs*ntiles (num_pairs=3 for the
    rectilinear config), giving ample headroom for the selected-tile count.
    Co-Authored-By: 's avatarClaude Opus 4.8 (1M context) <noreply@anthropic.com>
    54f134b1
tp_jna.cpp 69.8 KB