Faiss
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
GpuIndicesOptions.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 
11 #pragma once
12 
13 namespace faiss { namespace gpu {
14 
15 /// How user vector index data is stored on the GPU
16 enum IndicesOptions {
17  /// The user indices are only stored on the CPU; the GPU returns
18  /// (inverted list, offset) to the CPU which is then translated to
19  /// the real user index.
20  INDICES_CPU = 0,
21  /// The indices are not stored at all, on either the CPU or
22  /// GPU. Only (inverted list, offset) is returned to the user as the
23  /// index.
24  INDICES_IVF = 1,
25  /// Indices are stored as 32 bit integers on the GPU, but returned
26  /// as 64 bit integers
27  INDICES_32_BIT = 2,
28  /// Indices are stored as 64 bit integers on the GPU
29  INDICES_64_BIT = 3,
30 };
31 
32 } } // namespace