Faiss
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
GpuClonerOptions.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 #pragma once
11 
12 #include "GpuIndicesOptions.h"
13 
14 namespace faiss { namespace gpu {
15 
16 /// set some options on how to copy to GPU
19 
20  /// how should indices be stored on index types that support indices
21  /// (anything but GpuIndexFlat*)?
22  IndicesOptions indicesOptions;
23 
24  /// is the coarse quantizer in float16?
26 
27  /// for GpuIndexIVFFlat, is storage in float16?
28  /// for GpuIndexIVFPQ, are intermediate calculations in float16?
29  bool useFloat16;
30 
31  /// use precomputed tables?
33 
34  /// reserve vectors in the invfiles?
36 
37  /// For GpuIndexFlat, store data in transposed layout?
39 
40  /// Set verbose options on the index
41  bool verbose;
42 };
43 
46 
47  /// Whether to shard the index across GPUs, versus replication
48  /// across GPUs
49  bool shard;
50 
51  /// IndexIVF::copy_subset_to subset type
53 };
54 
55 } } // namespace
bool storeTransposed
For GpuIndexFlat, store data in transposed layout?
set some options on how to copy to GPU
bool usePrecomputed
use precomputed tables?
int shard_type
IndexIVF::copy_subset_to subset type.
bool useFloat16CoarseQuantizer
is the coarse quantizer in float16?
bool verbose
Set verbose options on the index.
long reserveVecs
reserve vectors in the invfiles?