13 #include "../GpuIndicesOptions.h"
14 #include "../utils/Tensor.cuh"
15 #include <thrust/device_vector.h>
17 namespace faiss {
namespace gpu {
20 void runUpdateListPointers(Tensor<int, 1, true>& listIds,
21 Tensor<int, 1, true>& newListLength,
22 Tensor<void*, 1, true>& newCodePointers,
23 Tensor<void*, 1, true>& newIndexPointers,
24 thrust::device_vector<int>& listLengths,
25 thrust::device_vector<void*>& listCodes,
26 thrust::device_vector<void*>& listIndices,
32 void runIVFPQInvertedListAppend(Tensor<int, 1, true>& listIds,
33 Tensor<int, 1, true>& listOffset,
34 Tensor<int, 2, true>& encodings,
35 Tensor<long, 1, true>& indices,
36 thrust::device_vector<void*>& listCodes,
37 thrust::device_vector<void*>& listIndices,
38 IndicesOptions indicesOptions,
42 void runIVFFlatInvertedListAppend(Tensor<int, 1, true>& listIds,
43 Tensor<int, 1, true>& listOffset,
44 Tensor<float, 2, true>& vecs,
45 Tensor<long, 1, true>& indices,
47 thrust::device_vector<void*>& listData,
48 thrust::device_vector<void*>& listIndices,
49 IndicesOptions indicesOptions,