Faiss

- Main Page
- Namespaces
- Classes
- Files

- File List

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
L2Select.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 "../utils/Float16.cuh"
14 #include "../utils/Tensor.cuh"
15
16 namespace faiss { namespace gpu {
17
18 void runL2SelectMin(Tensor<float, 2, true>& productDistances,
19 Tensor<float, 1, true>& centroidDistances,
20 Tensor<float, 2, true>& outDistances,
21 Tensor<int, 2, true>& outIndices,
22 int k,
23 cudaStream_t stream);
24
25 #ifdef FAISS_USE_FLOAT16
26 void runL2SelectMin(Tensor<half, 2, true>& productDistances,
27 Tensor<half, 1, true>& centroidDistances,
28 Tensor<half, 2, true>& outDistances,
29 Tensor<int, 2, true>& outIndices,
30 int k,
31 cudaStream_t stream);
32 #endif
33
34 } } // namespace