Faiss

- Main Page
- Namespaces
- Classes
- Files

- File List

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
GpuIndicesOptions_c.h
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 // -*- c -*-
11
12 #ifndef FAISS_GPU_INDICES_OPTIONS_C_H
13 #define FAISS_GPU_INDICES_OPTIONS_C_H
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /// How user vector index data is stored on the GPU
20 typedef enum FaissIndicesOptions {
21 /// The user indices are only stored on the CPU; the GPU returns
22 /// (inverted list, offset) to the CPU which is then translated to
23 /// the real user index.
24 INDICES_CPU = 0,
25 /// The indices are not stored at all, on either the CPU or
26 /// GPU. Only (inverted list, offset) is returned to the user as the
27 /// index.
28 INDICES_IVF = 1,
29 /// Indices are stored as 32 bit integers on the GPU, but returned
30 /// as 64 bit integers
31 INDICES_32_BIT = 2,
32 /// Indices are stored as 64 bit integers on the GPU
33 INDICES_64_BIT = 3,
34 } FaissIndicesOptions;
35
36 #ifdef __cplusplus
37 }
38 #endif
39 #endif