@@ -972,14 +972,16 @@ void test_evict_strategy_lru_basic(size_t max_hbm_for_vectors) {
972972
973973 CUDA_CHECK (cudaMalloc (&d_accum_or_assigns_temp, TEMP_KEY_NUM * sizeof (bool )));
974974
975- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()),
976- BASE_KEY_NUM, true_ratio);
975+ test_util::create_random_bools<K>(
976+ reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()), BASE_KEY_NUM,
977+ true_ratio);
977978 test_util::create_keys_in_one_buckets<K, S, V, DIM>(
978979 h_keys_base.data (), h_scores_base.data (), h_vectors_base.data (),
979980 BASE_KEY_NUM, INIT_CAPACITY, BUCKET_MAX_SIZE, 1 , 0 , 0x3FFFFFFFFFFFFFFF );
980981
981- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()),
982- TEST_KEY_NUM, true_ratio);
982+ test_util::create_random_bools<K>(
983+ reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()), TEST_KEY_NUM,
984+ true_ratio);
983985 test_util::create_keys_in_one_buckets<K, S, V, DIM>(
984986 h_keys_test.data (), h_scores_test.data (), h_vectors_test.data (),
985987 TEST_KEY_NUM, INIT_CAPACITY, BUCKET_MAX_SIZE, 1 , 0x3FFFFFFFFFFFFFFF ,
@@ -1189,11 +1191,13 @@ void test_evict_strategy_lfu_basic(size_t max_hbm_for_vectors, int key_start) {
11891191
11901192 CUDA_CHECK (cudaMalloc (&d_accum_or_assigns_temp, TEMP_KEY_NUM * sizeof (bool )));
11911193
1192- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()),
1193- BASE_KEY_NUM, true_ratio);
1194+ test_util::create_random_bools<K>(
1195+ reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()), BASE_KEY_NUM,
1196+ true_ratio);
11941197
1195- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()),
1196- TEST_KEY_NUM, true_ratio);
1198+ test_util::create_random_bools<K>(
1199+ reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()), TEST_KEY_NUM,
1200+ true_ratio);
11971201
11981202 for (int i = 0 ; i < TEST_TIMES; i++) {
11991203 test_util::create_keys_in_one_buckets_lfu<K, S, V, DIM>(
@@ -1416,14 +1420,16 @@ void test_evict_strategy_epochlru_basic(size_t max_hbm_for_vectors,
14161420
14171421 CUDA_CHECK (cudaMalloc (&d_accum_or_assigns_temp, TEMP_KEY_NUM * sizeof (bool )));
14181422
1419- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()),
1420- BASE_KEY_NUM, true_ratio);
1423+ test_util::create_random_bools<K>(
1424+ reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()), BASE_KEY_NUM,
1425+ true_ratio);
14211426 test_util::create_keys_in_one_buckets<K, S, V, DIM>(
14221427 h_keys_base.data (), h_scores_base.data (), h_vectors_base.data (),
14231428 BASE_KEY_NUM, INIT_CAPACITY, BUCKET_MAX_SIZE, 1 , 0 , 0x3FFFFFFFFFFFFFFF );
14241429
1425- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()),
1426- TEST_KEY_NUM, true_ratio);
1430+ test_util::create_random_bools<K>(
1431+ reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()), TEST_KEY_NUM,
1432+ true_ratio);
14271433 test_util::create_keys_in_one_buckets<K, S, V, DIM>(
14281434 h_keys_test.data (), h_scores_test.data (), h_vectors_test.data (),
14291435 TEST_KEY_NUM, INIT_CAPACITY, BUCKET_MAX_SIZE, 1 , 0x3FFFFFFFFFFFFFFF ,
@@ -1645,11 +1651,13 @@ void test_evict_strategy_epochlfu_basic(size_t max_hbm_for_vectors,
16451651
16461652 CUDA_CHECK (cudaMalloc (&d_accum_or_assigns_temp, TEMP_KEY_NUM * sizeof (bool )));
16471653
1648- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()),
1649- BASE_KEY_NUM, true_ratio);
1654+ test_util::create_random_bools<K>(
1655+ reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()), BASE_KEY_NUM,
1656+ true_ratio);
16501657
1651- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()),
1652- TEST_KEY_NUM, true_ratio);
1658+ test_util::create_random_bools<K>(
1659+ reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()), TEST_KEY_NUM,
1660+ true_ratio);
16531661
16541662 test_util::create_keys_in_one_buckets_lfu<K, S, V, DIM>(
16551663 h_keys_base.data (), h_scores_base.data (), h_vectors_base.data (),
@@ -1913,10 +1921,12 @@ void test_evict_strategy_customized_basic(size_t max_hbm_for_vectors,
19131921 CUDA_CHECK (cudaMalloc (&d_accum_or_assigns_temp, TEMP_KEY_NUM * sizeof (bool )));
19141922 CUDA_CHECK (cudaMalloc (&d_found_temp, TEMP_KEY_NUM * sizeof (bool )));
19151923
1916- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()),
1917- BASE_KEY_NUM, true_ratio);
1918- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()),
1919- TEST_KEY_NUM, true_ratio);
1924+ test_util::create_random_bools<K>(
1925+ reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()), BASE_KEY_NUM,
1926+ true_ratio);
1927+ test_util::create_random_bools<K>(
1928+ reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()), TEST_KEY_NUM,
1929+ true_ratio);
19201930
19211931 test_util::create_keys_in_one_buckets<K, S, V, DIM>(
19221932 h_keys_base.data (), h_scores_base.data (), h_vectors_base.data (),
@@ -2171,8 +2181,9 @@ void test_evict_strategy_customized_advanced(size_t max_hbm_for_vectors,
21712181 cudaMalloc (&d_vectors_temp, TEMP_KEY_NUM * sizeof (V) * options.dim ));
21722182 CUDA_CHECK (cudaMalloc (&d_accum_or_assigns_temp, TEMP_KEY_NUM * sizeof (bool )));
21732183
2174- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()),
2175- BASE_KEY_NUM, base_true_ratio);
2184+ test_util::create_random_bools<K>(
2185+ reinterpret_cast <bool *>(h_accum_or_assigns_base.data ()), BASE_KEY_NUM,
2186+ base_true_ratio);
21762187 test_util::create_keys_in_one_buckets<K, S, V, DIM>(
21772188 h_keys_base.data (), h_scores_base.data (), h_vectors_base.data (),
21782189 BASE_KEY_NUM, INIT_CAPACITY, BUCKET_MAX_SIZE, 1 , 0 , 0x3FFFFFFFFFFFFFFF );
@@ -2182,8 +2193,9 @@ void test_evict_strategy_customized_advanced(size_t max_hbm_for_vectors,
21822193 h_scores_base[i] = base_score_start + i;
21832194 }
21842195
2185- test_util::create_random_bools<K>(reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()),
2186- TEST_KEY_NUM, test_true_ratio);
2196+ test_util::create_random_bools<K>(
2197+ reinterpret_cast <bool *>(h_accum_or_assigns_test.data ()), TEST_KEY_NUM,
2198+ test_true_ratio);
21872199 test_util::create_keys_in_one_buckets<K, S, V, DIM>(
21882200 h_keys_test.data (), h_scores_test.data (), h_vectors_test.data (),
21892201 TEST_KEY_NUM, INIT_CAPACITY, BUCKET_MAX_SIZE, 1 , 0x3FFFFFFFFFFFFFFF ,
0 commit comments