Debian Codegraph @

c_api/gpu/GpuClonerOptions_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_CLONER_OPTIONS_C_H
11 #define FAISS_GPU_CLONER_OPTIONS_C_H
12
13 #include "../faiss_c.h"
14 #include "GpuIndicesOptions_c.h"
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 FAISS_DECLARE_CLASS(GpuClonerOptions)
21
22 FAISS_DECLARE_DESTRUCTOR(GpuClonerOptions)
23
24 /// Default constructor for GpuClonerOptions
25 int faiss_GpuClonerOptions_new(FaissGpuClonerOptions**);
26
27 /// how should indices be stored on index types that support indices
28 /// (anything but GpuIndexFlat*)?
29 FAISS_DECLARE_GETTER_SETTER(
30 GpuClonerOptions,
31 FaissIndicesOptions,
32 indicesOptions)
33
34 /// (boolean) is the coarse quantizer in float16?
35 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, int, useFloat16CoarseQuantizer)
36
37 /// (boolean) for GpuIndexIVFFlat, is storage in float16?
38 /// for GpuIndexIVFPQ, are intermediate calculations in float16?
39 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, int, useFloat16)
40
41 /// (boolean) use precomputed tables?
42 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, int, usePrecomputed)
43
44 /// reserve vectors in the invfiles?
45 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, long, reserveVecs)
46
47 /// (boolean) For GpuIndexFlat, store data in transposed layout?
48 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, int, storeTransposed)
49
50 /// (boolean) Set verbose options on the index
51 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, int, verbose)
52
53 FAISS_DECLARE_CLASS_INHERITED(GpuMultipleClonerOptions, GpuClonerOptions)
54
55 FAISS_DECLARE_DESTRUCTOR(GpuMultipleClonerOptions)
56
57 /// Default constructor for GpuMultipleClonerOptions
58 int faiss_GpuMultipleClonerOptions_new(FaissGpuMultipleClonerOptions**);
59
60 /// (boolean) Whether to shard the index across GPUs, versus replication
61 /// across GPUs
62 FAISS_DECLARE_GETTER_SETTER(GpuMultipleClonerOptions, int, shard)
63
64 /// IndexIVF::copy_subset_to subset type
65 FAISS_DECLARE_GETTER_SETTER(GpuMultipleClonerOptions, int, shard_type)
66
67 #ifdef __cplusplus
68 }
69 #endif
70 #endif