Faiss

- Main Page
- Namespaces
- Classes
- Files

- File List

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
IVFFlatScan.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 // Copyright 2004-present Facebook. All Rights Reserved.
10
11 #pragma once
12
13 #include "../GpuIndicesOptions.h"
14 #include "../utils/Tensor.cuh"
15 #include <thrust/device_vector.h>
16
17 namespace faiss { namespace gpu {
18
19 class GpuResources;
20
21 void runIVFFlatScan(Tensor<float, 2, true>& queries,
22 Tensor<int, 2, true>& listIds,
23 thrust::device_vector<void*>& listData,
24 thrust::device_vector<void*>& listIndices,
25 IndicesOptions indicesOptions,
26 thrust::device_vector<int>& listLengths,
27 int maxListLength,
28 int k,
29 bool l2Distance,
30 bool useFloat16,
31 // output
32 Tensor<float, 2, true>& outDistances,
33 // output
34 Tensor<long, 2, true>& outIndices,
35 GpuResources* res);
36
37 } } // namespace