Skip to content

Fix gather index type in ann_ivf_flat test#2279

Open
huuanhhuyn wants to merge 3 commits into
NVIDIA:mainfrom
huuanhhuyn:fix_index_type_ivf_flat
Open

Fix gather index type in ann_ivf_flat test#2279
huuanhhuyn wants to merge 3 commits into
NVIDIA:mainfrom
huuanhhuyn:fix_index_type_ivf_flat

Conversation

@huuanhhuyn

@huuanhhuyn huuanhhuyn commented Jun 30, 2026

Copy link
Copy Markdown

Change gather index type to int32_t.

Follow up to NVIDIA/raft#3059.

@huuanhhuyn huuanhhuyn changed the title Fix gather index type in ann_ivf_flat test [WIP] Fix gather index type in ann_ivf_flat test Jun 30, 2026
@huuanhhuyn huuanhhuyn changed the title [WIP] Fix gather index type in ann_ivf_flat test Fix gather index type in ann_ivf_flat test Jun 30, 2026
(const DataT*)database.data(), static_cast<uint32_t>(ps.num_db_vecs), idx.dim()),
raft::make_device_vector_view<const IdxT, uint32_t>((const IdxT*)list_inds.data_handle(),
list_size),
raft::make_device_matrix_view<const DataT, int32_t>(

@huuanhhuyn huuanhhuyn Jun 30, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the change fixes this.
I don't get why FastIntDiv is resolved by this gather. Shouldn't FastIntDiv only be used by in-place gather.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant