Skip to content

Commit a05de3e

Browse files
Update cagra C API enums to have more long term stable values (#1436)
Authors: - Robert Maynard (https://github.com/robertmaynard) Approvers: - Ben Frederickson (https://github.com/benfred) URL: #1436
1 parent 94646de commit a05de3e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

c/include/cuvs/neighbors/cagra.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,14 @@ enum cuvsCagraSearchAlgo {
214214
/** For small batch sizes. */
215215
MULTI_CTA = 1,
216216
MULTI_KERNEL = 2,
217-
AUTO = 3
217+
AUTO = 100
218218
};
219219

220220
/**
221221
* @brief Enum to denote Hash Mode used while searching CAGRA index
222222
*
223223
*/
224-
enum cuvsCagraHashMode { HASH = 0, SMALL = 1, AUTO_HASH = 2 };
224+
enum cuvsCagraHashMode { HASH = 0, SMALL = 1, AUTO_HASH = 100 };
225225

226226
/**
227227
* @brief Supplemental parameters to search CAGRA index

cpp/include/cuvs/neighbors/cagra.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ enum class search_algo {
133133
/** For small batch sizes. */
134134
MULTI_CTA = 1,
135135
MULTI_KERNEL = 2,
136-
AUTO = 3
136+
AUTO = 100
137137
};
138138

139-
enum class hash_mode { HASH = 0, SMALL = 1, AUTO = 2 };
139+
enum class hash_mode { HASH = 0, SMALL = 1, AUTO = 100 };
140140

141141
struct search_params : cuvs::neighbors::search_params {
142142
/** Maximum number of queries to search at the same time (batch size). Auto select when 0.*/

java/cuvs-java/src/main/java/com/nvidia/cuvs/CagraSearchParams.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public enum SearchAlgo {
5656
/**
5757
* AUTO
5858
*/
59-
AUTO(3);
59+
AUTO(100);
6060

6161
/**
6262
* The value for the enum choice.
@@ -83,7 +83,7 @@ public enum HashMapMode {
8383
/**
8484
* AUTO_HASH
8585
*/
86-
AUTO_HASH(2);
86+
AUTO_HASH(100);
8787

8888
/**
8989
* The value for the enum choice.

0 commit comments

Comments
 (0)