Skip to content

Align views with partial batch extents for SNMG ANN direct merge - #2441

Open
viclafargue wants to merge 1 commit into
NVIDIA:mainfrom
viclafargue:align-snmg-ann-direct-merge-views
Open

Align views with partial batch extents for SNMG ANN direct merge#2441
viclafargue wants to merge 1 commit into
NVIDIA:mainfrom
viclafargue:align-snmg-ann-direct-merge-views

Conversation

@viclafargue

Copy link
Copy Markdown
Contributor

In MERGE_ON_ROOT_RANK mode, shard results are packed using the current batch size, but knn_merge_parts receives full-batch views and therefore uses n_rows_per_batch as the per-shard stride.

When the final batch is smaller, results from ranks after the first are read from incorrect offsets, potentially merging stale data and returning incorrect neighbors.

The merge should use input and output views sized to n_rows_of_current_batch.

@viclafargue
viclafargue requested a review from a team as a code owner August 13, 2026 09:10
@viclafargue
viclafargue requested a review from divyegala August 13, 2026 09:10
@viclafargue viclafargue added bug Something isn't working non-breaking Introduces a non-breaking change labels Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Introduces a non-breaking change

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants