Skip to content

Commit 80f2ad7

Browse files
authored
Fix typos identified by cursor (#687)
This pull request addresses and corrects typographical errors as suggested by Cursor.
1 parent 4a731b8 commit 80f2ad7

File tree

9 files changed

+46
-46
lines changed

9 files changed

+46
-46
lines changed

include/cuco/detail/open_addressing/open_addressing_impl.cuh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ class open_addressing_impl {
578578
* a match with its key equivalent to the query key.
579579
*
580580
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
581-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
582-
* is false, stores `empty_value_sentienl` to `(output_begin + i)`.
581+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
582+
* is false, stores `empty_value_sentinel` to `(output_begin + i)`.
583583
*
584584
* @tparam InputIt Device accessible input iterator
585585
* @tparam StencilIt Device accessible random access iterator whose value_type is
@@ -953,7 +953,7 @@ class open_addressing_impl {
953953
* @note Behavior is undefined if the desired `extent` is insufficient to store all of the
954954
* contained elements.
955955
*
956-
* @note This function is not available if the conatiner's `extent_type` is static.
956+
* @note This function is not available if the container's `extent_type` is static.
957957
*
958958
* @tparam Container The container type this function operates on
959959
*
@@ -994,7 +994,7 @@ class open_addressing_impl {
994994
* @note Behavior is undefined if the desired `extent` is insufficient to store all of the
995995
* contained elements.
996996
*
997-
* @note This function is not available if the conatiner's `extent_type` is static.
997+
* @note This function is not available if the container's `extent_type` is static.
998998
*
999999
* @tparam Container The container type this function operates on
10001000
*

include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class open_addressing_ref_impl {
309309
*
310310
* @tparam CG The type of the cooperative thread group
311311
*
312-
* @param g The ooperative thread group used to copy the data structure
312+
* @param g The cooperative thread group used to copy the data structure
313313
* @param memory_to_use Array large enough to support `capacity` elements. Object does not take
314314
* the ownership of the memory
315315
*/

include/cuco/static_map.cuh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ namespace cuco {
5050
*
5151
* The host-side bulk operations include `insert`, `contains`, etc. These APIs should be used when
5252
* there are a large number of keys to modify or lookup. For example, given a range of keys
53-
* specified by device-accessible iterators, the bulk `insert` function will insert all keys into
53+
* specified by device-accessible iterators, the bulk `insert` function inserts all keys into
5454
* the map.
5555
*
5656
* The singular device-side operations allow individual threads (or cooperative groups) to perform
5757
* independent modify or lookup operations from device code. These operations are accessed through
58-
* non-owning, trivially copyable reference types (or "ref"). User can combine any arbitrary
58+
* non-owning, trivially copyable reference types (or "ref"). Users can combine any arbitrary
5959
* operators (see options in `include/cuco/operator.hpp`) when creating the ref. Concurrent modify
6060
* and lookup will be supported if both kinds of operators are specified during the ref
6161
* construction.
@@ -799,8 +799,8 @@ class static_map {
799799
* query key.
800800
*
801801
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
802-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
803-
* is false, always stores the `empty_value_sentienl` to `(output_begin + i)`.
802+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
803+
* is false, always stores the `empty_value_sentinel` to `(output_begin + i)`.
804804
* @note This function synchronizes the given stream. For asynchronous execution use
805805
* `find_if_async`.
806806
*
@@ -832,8 +832,8 @@ class static_map {
832832
* a match with its key equivalent to the query key.
833833
*
834834
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
835-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
836-
* is false, always stores the `empty_value_sentienl` to `(output_begin + i)`.
835+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
836+
* is false, always stores the `empty_value_sentinel` to `(output_begin + i)`.
837837
*
838838
* @tparam InputIt Device accessible input iterator
839839
* @tparam StencilIt Device accessible random access iterator whose `value_type` is convertible to
@@ -863,8 +863,8 @@ class static_map {
863863
* a match with its key equivalent to the query key.
864864
*
865865
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
866-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
867-
* is false, always stores the `empty_value_sentienl` to `(output_begin + i)`.
866+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
867+
* is false, always stores the `empty_value_sentinel` to `(output_begin + i)`.
868868
*
869869
* @tparam InputIt Device accessible input iterator
870870
* @tparam StencilIt Device accessible random access iterator whose `value_type` is convertible to
@@ -1029,7 +1029,7 @@ class static_map {
10291029
*
10301030
* @tparam KeyOut Device accessible random access output iterator whose `value_type` is
10311031
* convertible from `key_type`.
1032-
* @tparam ValueOut Device accesible random access output iterator whose `value_type` is
1032+
* @tparam ValueOut Device accessible random access output iterator whose `value_type` is
10331033
* convertible from `mapped_type`.
10341034
*
10351035
* @param keys_out Beginning output iterator for keys
@@ -1066,7 +1066,7 @@ class static_map {
10661066
* @note Behavior is undefined if the desired `capacity` is insufficient to store all of the
10671067
* contained elements.
10681068
*
1069-
* @note This function is not available if the conatiner's `extent_type` is static.
1069+
* @note This function is not available if the container's `extent_type` is static.
10701070
*
10711071
* @param capacity New capacity of the container
10721072
* @param stream CUDA stream used for this operation
@@ -1091,7 +1091,7 @@ class static_map {
10911091
* @note Behavior is undefined if the desired `capacity` is insufficient to store all of the
10921092
* contained elements.
10931093
*
1094-
* @note This function is not available if the conatiner's `extent_type` is static.
1094+
* @note This function is not available if the container's `extent_type` is static.
10951095
*
10961096
* @param capacity New capacity of the container
10971097
* @param stream CUDA stream used for this operation
@@ -1512,7 +1512,7 @@ class static_map {
15121512
*
15131513
* @tparam KeyOut Device accessible random access output iterator whose `value_type` is
15141514
* convertible from `key_type`.
1515-
* @tparam ValueOut Device accesible random access output iterator whose `value_type` is
1515+
* @tparam ValueOut Device accessible random access output iterator whose `value_type` is
15161516
* convertible from `mapped_type`.
15171517
* @param keys_out Beginning output iterator for keys
15181518
* @param values_out Beginning output iterator for values
@@ -2280,7 +2280,7 @@ class static_map {
22802280
* @endcode
22812281
*
22822282
* @tparam CG The type of the cooperative thread group
2283-
* @param g The ooperative thread group used to copy the slots
2283+
* @param g The cooperative thread group used to copy the slots
22842284
* @param source_device_view `device_view` to copy from
22852285
* @param memory_to_use Array large enough to support `capacity` elements. Object does not take
22862286
* the ownership of the memory

include/cuco/static_map_ref.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class static_map_ref
276276
* @tparam CG The type of the cooperative thread group
277277
* @tparam NewScope The thread scope of the newly created device ref
278278
*
279-
* @param tile The ooperative thread group used to copy the data structure
279+
* @param tile The cooperative thread group used to copy the data structure
280280
* @param memory_to_use Array large enough to support `capacity` elements. Object does not take
281281
* the ownership of the memory
282282
* @param scope The thread scope of the newly created device ref

include/cuco/static_multimap.cuh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ class static_multimap {
523523
* query key.
524524
*
525525
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
526-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
527-
* is false, always stores the `empty_value_sentienl` to `(output_begin + i)`.
526+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
527+
* is false, always stores the `empty_value_sentinel` to `(output_begin + i)`.
528528
* @note This function synchronizes the given stream. For asynchronous execution use
529529
* `find_if_async`.
530530
*
@@ -556,8 +556,8 @@ class static_multimap {
556556
* a match with its key equivalent to the query key.
557557
*
558558
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
559-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
560-
* is false, always stores the `empty_value_sentienl` to `(output_begin + i)`.
559+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
560+
* is false, always stores the `empty_value_sentinel` to `(output_begin + i)`.
561561
*
562562
* @tparam InputIt Device accessible input iterator
563563
* @tparam StencilIt Device accessible random access iterator whose `value_type` is convertible to
@@ -778,7 +778,7 @@ class static_multimap {
778778
*
779779
* @tparam KeyOut Device accessible random access output iterator whose `value_type` is
780780
* convertible from `key_type`.
781-
* @tparam ValueOut Device accesible random access output iterator whose `value_type` is
781+
* @tparam ValueOut Device accessible random access output iterator whose `value_type` is
782782
* convertible from `mapped_type`.
783783
*
784784
* @param keys_out Beginning output iterator for keys
@@ -815,7 +815,7 @@ class static_multimap {
815815
* @note Behavior is undefined if the desired `capacity` is insufficient to store all of the
816816
* contained elements.
817817
*
818-
* @note This function is not available if the conatiner's `extent_type` is static.
818+
* @note This function is not available if the container's `extent_type` is static.
819819
*
820820
* @param capacity New capacity of the container
821821
* @param stream CUDA stream used for this operation
@@ -840,7 +840,7 @@ class static_multimap {
840840
* @note Behavior is undefined if the desired `capacity` is insufficient to store all of the
841841
* contained elements.
842842
*
843-
* @note This function is not available if the conatiner's `extent_type` is static.
843+
* @note This function is not available if the container's `extent_type` is static.
844844
*
845845
* @param capacity New capacity of the container
846846
* @param stream CUDA stream used for this operation
@@ -858,9 +858,9 @@ class static_multimap {
858858
[[nodiscard]] size_type size(cuda::stream_ref stream = {}) const;
859859

860860
/**
861-
* @brief Gets the maximum number of elements the hash map can hold.
861+
* @brief Gets the maximum number of elements the multimap can hold.
862862
*
863-
* @return The maximum number of elements the hash map can hold
863+
* @return The maximum number of elements the multimap can hold
864864
*/
865865
[[nodiscard]] constexpr auto capacity() const noexcept;
866866

@@ -1200,7 +1200,7 @@ class static_multimap {
12001200
* For each key, `k = *(first + i)`, counts all matching keys, `k'`, as determined by
12011201
* `key_equal(k, k')` and returns the sum of all matches for all keys.
12021202
*
1203-
* @tparam Input Device accesible input iterator whose `value_type` is convertible to `key_type`
1203+
* @tparam Input Device accessible input iterator whose `value_type` is convertible to `key_type`
12041204
* @tparam KeyEqual Binary callable
12051205
* @param first Beginning of the sequence of keys to count
12061206
* @param last End of the sequence of keys to count
@@ -1221,7 +1221,7 @@ class static_multimap {
12211221
* `key_equal(k, k')` and returns the sum of all matches for all keys. If `k` does not have any
12221222
* matches, it contributes 1 to the final sum.
12231223
*
1224-
* @tparam Input Device accesible input iterator whose `value_type` is convertible to `key_type`
1224+
* @tparam Input Device accessible input iterator whose `value_type` is convertible to `key_type`
12251225
* @tparam KeyEqual Binary callable
12261226
* @param first Beginning of the sequence of keys to count
12271227
* @param last End of the sequence of keys to count

include/cuco/static_multimap_ref.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class static_multimap_ref
275275
* @tparam CG The type of the cooperative thread group
276276
* @tparam NewScope The thread scope of the newly created device ref
277277
*
278-
* @param tile The ooperative thread group used to copy the data structure
278+
* @param tile The cooperative thread group used to copy the data structure
279279
* @param memory_to_use Array large enough to support `capacity` elements. Object does not take
280280
* the ownership of the memory
281281
* @param scope The thread scope of the newly created device ref

include/cuco/static_multiset.cuh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ class static_multiset {
487487
* query key.
488488
*
489489
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
490-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
491-
* is false, always stores the `empty_value_sentienl` to `(output_begin + i)`.
490+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
491+
* is false, always stores the `empty_value_sentinel` to `(output_begin + i)`.
492492
* @note This function synchronizes the given stream. For asynchronous execution use
493493
* `find_if_async`.
494494
*
@@ -520,8 +520,8 @@ class static_multiset {
520520
* a match with its key equivalent to the query key.
521521
*
522522
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
523-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
524-
* is false, always stores the `empty_value_sentienl` to `(output_begin + i)`.
523+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
524+
* is false, always stores the `empty_value_sentinel` to `(output_begin + i)`.
525525
*
526526
* @tparam InputIt Device accessible input iterator
527527
* @tparam StencilIt Device accessible random access iterator whose `value_type` is convertible to
@@ -845,7 +845,7 @@ class static_multiset {
845845
* @note Behavior is undefined if the desired `capacity` is insufficient to store all of the
846846
* contained elements.
847847
*
848-
* @note This function is not available if the conatiner's `extent_type` is static.
848+
* @note This function is not available if the container's `extent_type` is static.
849849
*
850850
* @param capacity New capacity of the container
851851
* @param stream CUDA stream used for this operation
@@ -870,7 +870,7 @@ class static_multiset {
870870
* @note Behavior is undefined if the desired `capacity` is insufficient to store all of the
871871
* contained elements.
872872
*
873-
* @note This function is not available if the conatiner's `extent_type` is static.
873+
* @note This function is not available if the container's `extent_type` is static.
874874
*
875875
* @param capacity New capacity of the container
876876
* @param stream CUDA stream used for this operation

include/cuco/static_set.cuh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@ class static_set {
623623
* query key.
624624
*
625625
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
626-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
627-
* is false, always stores the `empty_value_sentienl` to `(output_begin + i)`.
626+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
627+
* is false, always stores the `empty_value_sentinel` to `(output_begin + i)`.
628628
* @note This function synchronizes the given stream. For asynchronous execution use
629629
* `find_if_async`.
630630
*
@@ -656,8 +656,8 @@ class static_set {
656656
* a match with its key equivalent to the query key.
657657
*
658658
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
659-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
660-
* is false, always stores the `empty_value_sentienl` to `(output_begin + i)`.
659+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
660+
* is false, always stores the `empty_value_sentinel` to `(output_begin + i)`.
661661
*
662662
* @tparam InputIt Device accessible input iterator
663663
* @tparam StencilIt Device accessible random access iterator whose `value_type` is convertible to
@@ -687,8 +687,8 @@ class static_set {
687687
* a match with its key equivalent to the query key.
688688
*
689689
* @note If `pred( *(stencil + i) )` is true, stores the payload of the
690-
* matched key or the `empty_value_sentienl` to `(output_begin + i)`. If `pred( *(stencil + i) )`
691-
* is false, always stores the `empty_value_sentienl` to `(output_begin + i)`.
690+
* matched key or the `empty_value_sentinel` to `(output_begin + i)`. If `pred( *(stencil + i) )`
691+
* is false, always stores the `empty_value_sentinel` to `(output_begin + i)`.
692692
*
693693
* @tparam InputIt Device accessible input iterator
694694
* @tparam StencilIt Device accessible random access iterator whose `value_type` is convertible to
@@ -885,7 +885,7 @@ class static_set {
885885
* @note Behavior is undefined if the desired `capacity` is insufficient to store all of the
886886
* contained elements.
887887
*
888-
* @note This function is not available if the conatiner's `extent_type` is static.
888+
* @note This function is not available if the container's `extent_type` is static.
889889
*
890890
* @param capacity New capacity of the container
891891
* @param stream CUDA stream used for this operation
@@ -910,7 +910,7 @@ class static_set {
910910
* @note Behavior is undefined if the desired `capacity` is insufficient to store all of the
911911
* contained elements.
912912
*
913-
* @note This function is not available if the conatiner's `extent_type` is static.
913+
* @note This function is not available if the container's `extent_type` is static.
914914
*
915915
* @param capacity New capacity of the container
916916
* @param stream CUDA stream used for this operation

include/cuco/static_set_ref.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class static_set_ref
253253
* @tparam CG The type of the cooperative thread group
254254
* @tparam NewScope The thread scope of the newly created device ref
255255
*
256-
* @param tile The ooperative thread group used to copy the data structure
256+
* @param tile The cooperative thread group used to copy the data structure
257257
* @param memory_to_use Array large enough to support `capacity` elements. Object does not take
258258
* the ownership of the memory
259259
* @param scope The thread scope of the newly created device ref

0 commit comments

Comments
 (0)