Skip to content

Commit 9478f8e

Browse files
authored
Update codespell Version in pre-commit-config (#1920)
Authors: - Tarang Jain (https://github.com/tarang-jain) Approvers: - Gil Forsyth (https://github.com/gforsyth) - Bradley Dice (https://github.com/bdice) - Ben Frederickson (https://github.com/benfred) URL: #1920
1 parent 5f15f19 commit 9478f8e

38 files changed

Lines changed: 75 additions & 75 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ repos:
9292
files: rust/.*
9393
language: rust
9494
- repo: https://github.com/codespell-project/codespell
95-
rev: v2.2.2
95+
rev: v2.4.1
9696
hooks:
9797
- id: codespell
9898
additional_dependencies: [tomli]

cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ message(VERBOSE "cuVS: Build CPU only components: ${BUILD_CPU_ONLY}")
111111
message(VERBOSE "cuVS: Build ANN benchmarks: ${BUILD_CUVS_BENCH}")
112112
message(VERBOSE "cuVS: Build only the shared library: ${CUVS_COMPILE_DYNAMIC_ONLY}")
113113
message(VERBOSE "cuVS: Enable detection of conda environment for dependencies: ${DETECT_CONDA_ENV}")
114-
message(VERBOSE "cuVS: Disable depreaction warnings " ${DISABLE_DEPRECATION_WARNINGS})
114+
message(VERBOSE "cuVS: Disable deprecation warnings " ${DISABLE_DEPRECATION_WARNINGS})
115115
message(VERBOSE "cuVS: Disable OpenMP: ${DISABLE_OPENMP}")
116116
message(VERBOSE "cuVS: Enable kernel resource usage info: ${CUDA_ENABLE_KERNELINFO}")
117117
message(VERBOSE "cuVS: Enable lineinfo in nvcc: ${CUDA_ENABLE_LINEINFO}")

cpp/include/cuvs/cluster/agglomerative.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: Copyright (c) 2021-2025, NVIDIA CORPORATION.
2+
* SPDX-FileCopyrightText: Copyright (c) 2021-2026, NVIDIA CORPORATION.
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

@@ -91,7 +91,7 @@ class single_linkage_output {
9191
* @param[in] X dense input matrix in row-major layout
9292
* @param[out] dendrogram output dendrogram (size [n_rows - 1] * 2)
9393
* @param[out] labels output labels vector (size n_rows)
94-
* @param[in] metric distance metrix to use when constructing connectivities graph
94+
* @param[in] metric distance metric to use when constructing connectivities graph
9595
* @param[in] n_clusters number of clusters to assign data samples
9696
* @param[in] linkage strategy for constructing the linkage. PAIRWISE uses more memory but can be
9797
faster for

cpp/include/cuvs/neighbors/all_neighbors.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct all_neighbors_params {
111111
* all_neighbors::build(res, params, dataset, indices.view(), distances.view());
112112
* @endcode
113113
*
114-
* @param[in] handle raft::resources is an object mangaging resources
114+
* @param[in] handle raft::resources is an object managing resources
115115
* @param[in] params an instance of all_neighbors::all_neighbors_params that are parameters
116116
* to build all-neighbors knn graph
117117
* @param[in] dataset raft::host_matrix_view input dataset expected to be located
@@ -147,7 +147,7 @@ void build(
147147
* all_neighbors::build(res, params, dataset, indices.view(), distances.view());
148148
* @endcode
149149
*
150-
* @param[in] handle raft::resources is an object mangaging resources
150+
* @param[in] handle raft::resources is an object managing resources
151151
* @param[in] params an instance of all_neighbors::all_neighbors_params that are parameters
152152
* to build all-neighbors knn graph
153153
* @param[in] dataset raft::device_matrix_view input dataset expected to be located

cpp/include/cuvs/neighbors/common.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ template <typename DatasetT>
224224
inline constexpr bool is_strided_dataset_v = is_strided_dataset<DatasetT>::value;
225225

226226
/**
227-
* @brief Contstruct a strided matrix from any mdarray or mdspan.
227+
* @brief Construct a strided matrix from any mdarray or mdspan.
228228
*
229229
* This function constructs a non-owning view if the input satisfied two conditions:
230230
*
@@ -299,7 +299,7 @@ auto make_strided_dataset(const raft::resources& res, const SrcT& src, uint32_t
299299
}
300300

301301
/**
302-
* @brief Contstruct a strided matrix from any mdarray.
302+
* @brief Construct a strided matrix from any mdarray.
303303
*
304304
* This function constructs an owning device matrix and copies the data.
305305
* When the data is copied, padding elements are filled with zeroes.
@@ -370,7 +370,7 @@ auto make_strided_dataset(
370370
}
371371

372372
/**
373-
* @brief Contstruct a strided matrix from any mdarray or mdspan.
373+
* @brief Construct a strided matrix from any mdarray or mdspan.
374374
*
375375
* A variant `make_strided_dataset` that allows specifying the byte alignment instead of the
376376
* explicit stride length.
@@ -915,7 +915,7 @@ enum distribution_mode {
915915
/** Search mode when using a replicated index */
916916
/// \ingroup mg_cpp_search_params
917917
enum replicated_search_mode {
918-
/** Search queries are splited to maintain equal load on GPUs */
918+
/** Search queries are split to maintain equal load on GPUs */
919919
LOAD_BALANCER,
920920
/** Each search query is processed by a single GPU in a round-robin fashion */
921921
ROUND_ROBIN

cpp/include/cuvs/neighbors/ivf_flat.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ struct index : cuvs::neighbors::index {
242242
raft::device_vector_view<IdxT* const, uint32_t> inds_ptrs() const noexcept;
243243

244244
/**
245-
* Whether to use convervative memory allocation when extending the list (cluster) data
245+
* Whether to use conservative memory allocation when extending the list (cluster) data
246246
* (see index_params.conservative_memory_allocation).
247247
*/
248248
bool conservative_memory_allocation() const noexcept;

cpp/include/cuvs/neighbors/ivf_pq.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ class index : public index_iface<IdxT>, cuvs::neighbors::index {
567567
uint32_t n_lists() const noexcept;
568568

569569
/**
570-
* Whether to use convervative memory allocation when extending the list (cluster) data
570+
* Whether to use conservative memory allocation when extending the list (cluster) data
571571
* (see index_params.conservative_memory_allocation).
572572
*/
573573
bool conservative_memory_allocation() const noexcept override;

cpp/include/cuvs/neighbors/nn_descent.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct index : cuvs::neighbors::index {
101101
* The type of the knn-graph is a dense raft::host_matrix and dimensions are
102102
* (n_rows, n_cols).
103103
*
104-
* @param res raft::resources is an object mangaging resources
104+
* @param res raft::resources is an object managing resources
105105
* @param n_rows number of rows in knn-graph
106106
* @param n_cols number of cols in knn-graph
107107
* @param return_distances whether to return distances
@@ -132,7 +132,7 @@ struct index : cuvs::neighbors::index {
132132
* The type of the knn-graph is a dense raft::host_matrix and dimensions are
133133
* (n_rows, n_cols).
134134
*
135-
* @param res raft::resources is an object mangaging resources
135+
* @param res raft::resources is an object managing resources
136136
* @param graph_view raft::host_matrix_view<IdxT, int64_t, raft::row_major> for storing knn-graph
137137
* @param distances_view optional raft::device_matrix_view<float, int64_t, row_major> for storing
138138
* distances
@@ -232,7 +232,7 @@ struct index : cuvs::neighbors::index {
232232
* // dataset
233233
* @endcode
234234
*
235-
* @param[in] res raft::resources is an object mangaging resources
235+
* @param[in] res raft::resources is an object managing resources
236236
* @param[in] params an instance of nn_descent::index_params that are parameters
237237
* to run the nn-descent algorithm
238238
* @param[in] dataset raft::device_matrix_view input dataset expected to be located
@@ -271,7 +271,7 @@ auto build(raft::resources const& res,
271271
*
272272
* @tparam T data-type of the input dataset
273273
* @tparam IdxT data-type for the output index
274-
* @param res raft::resources is an object mangaging resources
274+
* @param res raft::resources is an object managing resources
275275
* @param[in] params an instance of nn_descent::index_params that are parameters
276276
* to run the nn-descent algorithm
277277
* @param[in] dataset raft::host_matrix_view input dataset expected to be located
@@ -308,7 +308,7 @@ auto build(raft::resources const& res,
308308
* // dataset
309309
* @endcode
310310
*
311-
* @param[in] res raft::resources is an object mangaging resources
311+
* @param[in] res raft::resources is an object managing resources
312312
* @param[in] params an instance of nn_descent::index_params that are parameters
313313
* to run the nn-descent algorithm
314314
* @param[in] dataset raft::device_matrix_view input dataset expected to be located
@@ -347,7 +347,7 @@ auto build(raft::resources const& res,
347347
*
348348
* @tparam T data-type of the input dataset
349349
* @tparam IdxT data-type for the output index
350-
* @param res raft::resources is an object mangaging resources
350+
* @param res raft::resources is an object managing resources
351351
* @param[in] params an instance of nn_descent::index_params that are parameters
352352
* to run the nn-descent algorithm
353353
* @param[in] dataset raft::host_matrix_view input dataset expected to be located
@@ -385,7 +385,7 @@ auto build(raft::resources const& res,
385385
* // dataset
386386
* @endcode
387387
*
388-
* @param[in] res raft::resources is an object mangaging resources
388+
* @param[in] res raft::resources is an object managing resources
389389
* @param[in] params an instance of nn_descent::index_params that are parameters
390390
* to run the nn-descent algorithm
391391
* @param[in] dataset raft::device_matrix_view input dataset expected to be located
@@ -425,7 +425,7 @@ auto build(raft::resources const& res,
425425
*
426426
* @tparam T data-type of the input dataset
427427
* @tparam IdxT data-type for the output index
428-
* @param res raft::resources is an object mangaging resources
428+
* @param res raft::resources is an object managing resources
429429
* @param[in] params an instance of nn_descent::index_params that are parameters
430430
* to run the nn-descent algorithm
431431
* @param[in] dataset raft::host_matrix_view input dataset expected to be located
@@ -463,7 +463,7 @@ auto build(raft::resources const& res,
463463
* // dataset
464464
* @endcode
465465
*
466-
* @param[in] res raft::resources is an object mangaging resources
466+
* @param[in] res raft::resources is an object managing resources
467467
* @param[in] params an instance of nn_descent::index_params that are parameters
468468
* to run the nn-descent algorithm
469469
* @param[in] dataset raft::device_matrix_view input dataset expected to be located
@@ -503,7 +503,7 @@ auto build(raft::resources const& res,
503503
*
504504
* @tparam T data-type of the input dataset
505505
* @tparam IdxT data-type for the output index
506-
* @param res raft::resources is an object mangaging resources
506+
* @param res raft::resources is an object managing resources
507507
* @param[in] params an instance of nn_descent::index_params that are parameters
508508
* to run the nn-descent algorithm
509509
* @param[in] dataset raft::host_matrix_view input dataset expected to be located

cpp/include/cuvs/neighbors/scann.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION.
2+
* SPDX-FileCopyrightText: Copyright (c) 2024-2026, NVIDIA CORPORATION.
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

@@ -266,7 +266,7 @@ struct index : cuvs::neighbors::index {
266266
* The bits of __nv_bfloat16 are stored here reinterpreted as int16_t
267267
*
268268
* int16_t is used for two reaosns:
269-
* * OSS ScaNN expects int16_t, so the serialzed bf16_dataset_ can be consumed
269+
* * OSS ScaNN expects int16_t, so the serialized bf16_dataset_ can be consumed
270270
* without any additional post-processing
271271
* * For AVQ, we need to find the next bfloat16 number that is larger/smaller than a
272272
* given float. This is equivalent to incrementing/decrementing the mantissa

cpp/include/cuvs/neighbors/vamana.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION.
2+
* SPDX-FileCopyrightText: Copyright (c) 2024-2026, NVIDIA CORPORATION.
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

@@ -42,7 +42,7 @@ struct codebook_params {
4242
/**
4343
* @brief Parameters used to build DiskANN index
4444
*
45-
* `graph_degree`: Maximum degree of graph; correspods to the R parameter of
45+
* `graph_degree`: Maximum degree of graph; corresponds to the R parameter of
4646
* Vamana algorithm in the literature.
4747
* `visited_size`: Maximum number of visited nodes per search during Vamana algorithm.
4848
* Loosely corresponds to the L parameter in the literature.

0 commit comments

Comments
 (0)