Debian Codegraph @

c_api/gpu/GpuIndicesOptions_c.h

raw
1 /*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 // -*- c -*-
9
10 #ifndef FAISS_GPU_INDICES_OPTIONS_C_H
11 #define FAISS_GPU_INDICES_OPTIONS_C_H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 /// How user vector index data is stored on the GPU
18 typedef enum FaissIndicesOptions {
19 /// The user indices are only stored on the CPU; the GPU returns
20 /// (inverted list, offset) to the CPU which is then translated to
21 /// the real user index.
22 INDICES_CPU = 0,
23 /// The indices are not stored at all, on either the CPU or
24 /// GPU. Only (inverted list, offset) is returned to the user as the
25 /// index.
26 INDICES_IVF = 1,
27 /// Indices are stored as 32 bit integers on the GPU, but returned
28 /// as 64 bit integers
29 INDICES_32_BIT = 2,
30 /// Indices are stored as 64 bit integers on the GPU
31 INDICES_64_BIT = 3,
32 } FaissIndicesOptions;
33
34 #ifdef __cplusplus
35 }
36 #endif
37 #endif