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