Faiss

- Main Page
- Namespaces
- Classes
- Files

- File List

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
PQScanMultiPassPrecomputed.cuh
1 /**
2 * Copyright (c) 2015-present, Facebook, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD+Patents license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9
10 #pragma once
11
12 #include "../GpuIndicesOptions.h"
13 #include "../utils/Tensor.cuh"
14 #include "../utils/NoTypeTensor.cuh"
15 #include <thrust/device_vector.h>
16
17 namespace faiss { namespace gpu {
18
19 class GpuResources;
20
21 void runPQScanMultiPassPrecomputed(Tensor<float, 2, true>& queries,
22 Tensor<float, 2, true>& precompTerm1,
23 NoTypeTensor<3, true>& precompTerm2,
24 NoTypeTensor<3, true>& precompTerm3,
25 Tensor<int, 2, true>& topQueryToCentroid,
26 bool useFloat16Lookup,
27 int bytesPerCode,
28 int numSubQuantizers,
29 int numSubQuantizerCodes,
30 thrust::device_vector<void*>& listCodes,
31 thrust::device_vector<void*>& listIndices,
32 IndicesOptions indicesOptions,
33 thrust::device_vector<int>& listLengths,
34 int maxListLength,
35 int k,
36 // output
37 Tensor<float, 2, true>& outDistances,
38 // output
39 Tensor<long, 2, true>& outIndices,
40 GpuResources* res);
41
42 } } // namespace