22
22
#include " utils.h"
23
23
24
24
#ifdef KNOWHERE_WITH_RAFT
25
- TEST_CASE (" Test All GPU Index " , " [search]" ) {
25
+ TEST_CASE (" XXX " , " [search]" ) {
26
26
using Catch::Approx;
27
27
28
28
int64_t nb = 10000 , nq = 1000 ;
@@ -100,7 +100,7 @@ TEST_CASE("Test All GPU Index", "[search]") {
100
100
auto res = idx.Build (train_ds, json);
101
101
REQUIRE (res == knowhere::Status::success);
102
102
REQUIRE (idx.HasRawData (json[knowhere::meta::METRIC_TYPE]) ==
103
- IndexStaticFaced<knowhere::fp32>::HasRawData (name, version, json));
103
+ knowhere:: IndexStaticFaced<knowhere::fp32>::HasRawData (name, version, json));
104
104
auto results = idx.Search (query_ds, json, nullptr );
105
105
REQUIRE (results.has_value ());
106
106
auto ids = results.value ()->GetIds ();
@@ -130,7 +130,7 @@ TEST_CASE("Test All GPU Index", "[search]") {
130
130
auto res = idx.Build (train_ds, json);
131
131
REQUIRE (res == knowhere::Status::success);
132
132
REQUIRE (idx.HasRawData (json[knowhere::meta::METRIC_TYPE]) ==
133
- IndexStaticFaced<knowhere::fp32>::HasRawData (name, version, json));
133
+ knowhere:: IndexStaticFaced<knowhere::fp32>::HasRawData (name, version, json));
134
134
std::vector<std::function<std::vector<uint8_t >(size_t , size_t )>> gen_bitset_funcs = {
135
135
GenerateBitsetWithFirstTbitsSet, GenerateBitsetWithRandomTbitsSet};
136
136
const auto bitset_percentages = {0 .4f , 0 .98f };
@@ -145,7 +145,7 @@ TEST_CASE("Test All GPU Index", "[search]") {
145
145
if (percentage == 0 .98f ) {
146
146
REQUIRE (recall > 0 .4f );
147
147
} else {
148
- REQUIRE (recall > 0 .8f );
148
+ REQUIRE (recall > 0 .7f );
149
149
}
150
150
}
151
151
}
@@ -171,7 +171,7 @@ TEST_CASE("Test All GPU Index", "[search]") {
171
171
auto res = idx.Build (train_ds, json);
172
172
REQUIRE (res == knowhere::Status::success);
173
173
REQUIRE (idx.HasRawData (json[knowhere::meta::METRIC_TYPE]) ==
174
- IndexStaticFaced<knowhere::fp32>::HasRawData (name, version, json));
174
+ knowhere:: IndexStaticFaced<knowhere::fp32>::HasRawData (name, version, json));
175
175
const auto topk_values = {// Tuple with [TopKValue, Threshold]
176
176
make_tuple (5 , 0 .85f ), make_tuple (25 , 0 .85f ), make_tuple (100 , 0 .85f )};
177
177
@@ -210,7 +210,7 @@ TEST_CASE("Test All GPU Index", "[search]") {
210
210
auto idx_ = knowhere::IndexFactory::Instance ().Create <knowhere::fp32>(name, version).value ();
211
211
idx_.Deserialize (bs);
212
212
REQUIRE (idx.HasRawData (json[knowhere::meta::METRIC_TYPE]) ==
213
- IndexStaticFaced<knowhere::fp32>::HasRawData (name, version, json));
213
+ knowhere:: IndexStaticFaced<knowhere::fp32>::HasRawData (name, version, json));
214
214
auto results = idx_.Search (query_ds, json, nullptr );
215
215
REQUIRE (results.has_value ());
216
216
auto ids = results.value ()->GetIds ();
@@ -238,7 +238,7 @@ TEST_CASE("Test All GPU Index", "[search]") {
238
238
auto res = idx.Build (train_ds, json);
239
239
REQUIRE (res == knowhere::Status::success);
240
240
REQUIRE (idx.HasRawData (json[knowhere::meta::METRIC_TYPE]) ==
241
- IndexStaticFaced<knowhere::fp32>::HasRawData (name, version, json));
241
+ knowhere:: IndexStaticFaced<knowhere::fp32>::HasRawData (name, version, json));
242
242
std::vector<uint8_t > bitset_data (2 );
243
243
bitset_data[0 ] = 0b10100010 ;
244
244
bitset_data[1 ] = 0b00100011 ;
0 commit comments