Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cpp/tests/cluster/kmeans_balanced.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down Expand Up @@ -45,7 +45,7 @@ template <typename MathT, typename IdxT>
::std::ostream& operator<<(::std::ostream& os, const KmeansBalancedInputs<MathT, IdxT>& p)
{
os << "{ " << p.n_rows << ", " << p.n_cols << ", " << p.n_clusters << ", " << p.kb_params.n_iters
<< static_cast<int>(p.kb_params.metric) << '}' << std::endl;
<< static_cast<int>(p.kb_params.metric) << '}';
return os;
}

Expand Down
4 changes: 2 additions & 2 deletions cpp/tests/neighbors/all_neighbors.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
Expand Down Expand Up @@ -51,7 +51,7 @@ inline ::std::ostream& operator<<(::std::ostream& os, const AllNeighborsInputs&
os << "dataset shape=" << p.n_rows << "x" << p.dim << ", k=" << p.k
<< ", metric=" << static_cast<int>(std::get<1>(p.build_algo_metric_recall))
<< ", clusters=" << std::get<0>(p.cluster_nearestcluster)
<< ", overlap_factor=" << std::get<1>(p.cluster_nearestcluster) << std::endl;
<< ", overlap_factor=" << std::get<1>(p.cluster_nearestcluster);
return os;
}

Expand Down
4 changes: 2 additions & 2 deletions cpp/tests/neighbors/ann_brute_force.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2023-2024, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2023-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
Expand Down Expand Up @@ -32,7 +32,7 @@ template <typename T, typename IdxT>
::std::ostream& operator<<(::std::ostream& os, const AnnBruteForceInputs<IdxT>& p)
{
os << "{ " << p.num_queries << ", " << p.num_db_vecs << ", " << p.dim << ", " << p.k << ", "
<< static_cast<int>(p.metric) << static_cast<T>(p.metric_arg) << '}' << std::endl;
<< static_cast<int>(p.metric) << static_cast<T>(p.metric_arg) << '}';
return os;
}

Expand Down
2 changes: 1 addition & 1 deletion cpp/tests/neighbors/ann_cagra.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ inline ::std::ostream& operator<<(::std::ostream& os, const AnnCagraInputs& p)
os << ", pq_bits=" << vpq.pq_bits << ", pq_dim=" << vpq.pq_dim
<< ", vq_n_centers=" << vpq.vq_n_centers << ", smem_dtype=" << smem_dtype_str(p.smem_dtype);
}
os << '}' << std::endl;
os << '}';
return os;
}

Expand Down
2 changes: 1 addition & 1 deletion cpp/tests/neighbors/ann_ivf_flat.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ template <typename IdxT>
<< p.nprobe << ", " << p.nlist << ", "
<< cuvs::neighbors::print_metric{static_cast<cuvs::distance::DistanceType>((int)p.metric)}
<< ", " << p.adaptive_centers << "," << p.host_dataset << "," << p.kernel_copy_overlapping
<< '}' << std::endl;
<< '}';
return os;
}

Expand Down
4 changes: 2 additions & 2 deletions cpp/tests/neighbors/ann_ivf_sq.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
Expand Down Expand Up @@ -42,7 +42,7 @@ template <typename IdxT>
os << "{ " << p.num_queries << ", " << p.num_db_vecs << ", " << p.dim << ", " << p.k << ", "
<< p.nprobe << ", " << p.nlist << ", "
<< cuvs::neighbors::print_metric{static_cast<cuvs::distance::DistanceType>((int)p.metric)}
<< ", " << (p.host_dataset ? "host" : "device") << '}' << std::endl;
<< ", " << (p.host_dataset ? "host" : "device") << '}';
return os;
}

Expand Down
7 changes: 3 additions & 4 deletions cpp/tests/neighbors/ann_nn_descent.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2023-2026, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2023-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
Expand Down Expand Up @@ -50,16 +50,15 @@ struct AnnNNDescentBatchInputs {
inline ::std::ostream& operator<<(::std::ostream& os, const AnnNNDescentInputs& p)
{
os << "dataset shape=" << p.n_rows << "x" << p.dim << ", graph_degree=" << p.graph_degree
<< ", metric=" << static_cast<int>(p.metric) << (p.host_dataset ? ", host" : ", device")
<< std::endl;
<< ", metric=" << static_cast<int>(p.metric) << (p.host_dataset ? ", host" : ", device");
return os;
}

inline ::std::ostream& operator<<(::std::ostream& os, const AnnNNDescentBatchInputs& p)
{
os << "dataset shape=" << p.n_rows << "x" << p.dim << ", graph_degree=" << p.graph_degree
<< ", metric=" << static_cast<int>(p.metric) << (p.host_dataset ? ", host" : ", device")
<< ", clusters=" << p.recall_cluster.second << std::endl;
<< ", clusters=" << p.recall_cluster.second;
return os;
}

Expand Down
4 changes: 2 additions & 2 deletions cpp/tests/neighbors/dynamic_batching.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2024-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
Expand Down Expand Up @@ -43,7 +43,7 @@ inline ::std::ostream& operator<<(::std::ostream& os, const dynamic_batching_spe
os << ", max_batch_size=" << p.max_batch_size;
os << ", n_queues=" << p.n_queues;
os << ", conservative_dispatch=" << p.conservative_dispatch;
os << '}' << std::endl;
os << '}';
return os;
}

Expand Down
4 changes: 2 additions & 2 deletions cpp/tests/neighbors/hnsw.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2023-2024, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2023-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down Expand Up @@ -39,7 +39,7 @@ inline ::std::ostream& operator<<(::std::ostream& os, const AnnHNSWInputs& p)
os << "dataset shape=" << p.n_rows << "x" << p.dim << ", graph_degree=" << p.graph_degree
<< ", metric="
<< cuvs::neighbors::print_metric{static_cast<cuvs::distance::DistanceType>((int)p.metric)}
<< ", ef=" << (p.ef) << std::endl;
<< ", ef=" << (p.ef);
return os;
}

Expand Down
5 changes: 2 additions & 3 deletions cpp/tests/neighbors/tiered_index.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down Expand Up @@ -46,8 +46,7 @@ inline ::std::ostream& operator<<(::std::ostream& os, const TieredIndexTestStrat
inline ::std::ostream& operator<<(::std::ostream& os, const AnnTieredIndexInputs& p)
{
os << "dataset shape=" << p.n_rows << "x" << p.dim << ", metric=" << print_metric{p.metric}
<< ", k=" << p.k << ", n_queries=" << p.n_queries << ", test_strategy=" << p.test_strategy
<< std::endl;
<< ", k=" << p.k << ", n_queries=" << p.n_queries << ", test_strategy=" << p.test_strategy;
return os;
}

Expand Down
Loading