File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: Copyright (c) 2024-2025 , NVIDIA CORPORATION.
2+ * SPDX-FileCopyrightText: Copyright (c) 2024-2026 , NVIDIA CORPORATION & AFFILIATES. All rights reserved .
33 * SPDX-License-Identifier: Apache-2.0
44 */
55#pragma once
@@ -329,11 +329,13 @@ class AnnIVFFlatTest : public ::testing::TestWithParam<AnnIvfFlatInputs<IdxT>> {
329329 [dim = idx.dim (),
330330 list_size,
331331 padded_list_size,
332- chunk_size = raft::util::FastIntDiv (idx.veclen ())] __device__ (auto i) {
332+ chunk_size = raft::util::FastIntDiv<int32_t >(
333+ static_cast <int32_t >(idx.veclen ()))] __device__ (auto i) {
333334 uint32_t max_group_offset = interleaved_group::roundDown (list_size);
334335 if (i < max_group_offset * dim) { return true ; }
335- uint32_t surplus = (i - max_group_offset * dim);
336- uint32_t ingroup_id = interleaved_group::mod (surplus / chunk_size);
336+ uint32_t surplus = (i - max_group_offset * dim);
337+ uint32_t ingroup_id =
338+ interleaved_group::mod (static_cast <int32_t >(surplus) / chunk_size);
337339 return ingroup_id < (list_size - max_group_offset);
338340 });
339341
You can’t perform that action at this time.
0 commit comments