Commit 9cf04b6
Migrate cuco HLL (#6666)
* Migrate cuco HLL
* Add `sketch_size` strong type
* add standard_deviation strong type and its constructors
* __uglify detail strong typed names
* Rename `_MemoryResource` to `_MemoryResourceRef`
* Rename template paramter `_T` to `_Tp` to avoid NASTY macros
* suppress GCC visibility hidden attribute warnings for kernels
* move __cuco/detail/* to __cuco/*
* uglify detail folder names
* Refactor detail headers and namespaces
* use const west style
* use unsigned shifts to avoid U.B
* remove usage explicit this->()
* MSVC WAR
* use ::cuda::std::log
* use ::cuda::is_aligned
* move strong types inside the classes, making them nested types
* enable merge host APIs
* replace usage of _MemoryResourceRef with _MemoryResource
* remove __int128 tests
* use [[nodiscard]] attribute and `::cuda::std::size_t`
* include specific headers
* update `__register_mask` to be a member function
* Improve header guard macro's naming
* use noexcept
* move __m * __m out of switch statement
* replace `and` with `&`
* use const keyword
* remove usage of explicit `this->`
* remove usage of `new`
* use pinned memory resource and host buffer for copying sketch to host
* Add precision based contructor
* Add proper bound check for precision, sd, sketch_size in constructors
* accept host mr for estimate
* update exceptions macro usage
* update CUDAX_CUCO_HLL_TUNING_ARR_DECL macro
* fix ::cooperative_groups::invoke_one CTK requirements issues
* remove redundant static
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 1b9a0ee commit 9cf04b6
File tree
13 files changed
+2346
-76
lines changed- cudax
- include/cuda/experimental/__cuco
- __hash_functions
- __hyperloglog
- __utility
- test
- cuco/hyperloglog
13 files changed
+2346
-76
lines changedLines changed: 28 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
| 178 | + | |
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
| |||
205 | 204 | | |
206 | 205 | | |
207 | 206 | | |
208 | | - | |
| 207 | + | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
| |||
393 | 392 | | |
394 | 393 | | |
395 | 394 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
400 | 399 | | |
401 | 400 | | |
402 | 401 | | |
| |||
421 | 420 | | |
422 | 421 | | |
423 | 422 | | |
424 | | - | |
425 | | - | |
| 423 | + | |
426 | 424 | | |
427 | | - | |
| 425 | + | |
428 | 426 | | |
429 | | - | |
| 427 | + | |
430 | 428 | | |
431 | | - | |
| 429 | + | |
432 | 430 | | |
433 | 431 | | |
434 | 432 | | |
| |||
555 | 553 | | |
556 | 554 | | |
557 | 555 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
562 | 560 | | |
563 | 561 | | |
564 | 562 | | |
| |||
712 | 710 | | |
713 | 711 | | |
714 | 712 | | |
715 | | - | |
716 | | - | |
| 713 | + | |
| 714 | + | |
717 | 715 | | |
718 | 716 | | |
719 | 717 | | |
| |||
734 | 732 | | |
735 | 733 | | |
736 | 734 | | |
737 | | - | |
738 | | - | |
| 735 | + | |
739 | 736 | | |
740 | | - | |
| 737 | + | |
741 | 738 | | |
742 | 739 | | |
743 | 740 | | |
| |||
827 | 824 | | |
828 | 825 | | |
829 | 826 | | |
830 | | - | |
831 | | - | |
| 827 | + | |
| 828 | + | |
832 | 829 | | |
833 | 830 | | |
834 | 831 | | |
| |||
841 | 838 | | |
842 | 839 | | |
843 | 840 | | |
844 | | - | |
| 841 | + | |
845 | 842 | | |
846 | 843 | | |
847 | 844 | | |
848 | | - | |
| 845 | + | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
Lines changed: 14 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
210 | | - | |
| 208 | + | |
| 209 | + | |
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
| |||
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
232 | | - | |
233 | | - | |
| 231 | + | |
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
| |||
342 | 340 | | |
343 | 341 | | |
344 | 342 | | |
345 | | - | |
346 | | - | |
347 | | - | |
| 343 | + | |
| 344 | + | |
348 | 345 | | |
349 | 346 | | |
350 | 347 | | |
| |||
375 | 372 | | |
376 | 373 | | |
377 | 374 | | |
378 | | - | |
| 375 | + | |
379 | 376 | | |
380 | 377 | | |
381 | 378 | | |
| |||
387 | 384 | | |
388 | 385 | | |
389 | 386 | | |
390 | | - | |
391 | | - | |
| 387 | + | |
392 | 388 | | |
393 | 389 | | |
394 | 390 | | |
| |||
420 | 416 | | |
421 | 417 | | |
422 | 418 | | |
423 | | - | |
| 419 | + | |
424 | 420 | | |
425 | 421 | | |
426 | 422 | | |
427 | | - | |
| 423 | + | |
0 commit comments