Commit 0bb4d73
cuda.parallel: Support structured types as algorithm inputs (NVIDIA#3218)
* Introduce gpu_struct decorator and typing
* Enable `reduce` to accept arrays of structs as inputs
* Add test for reducing arrays-of-struct
* Update documentation
* Use a numpy array rather than ctypes object
* Change zeros -> empty for output array and temp storage
* Add a TODO for typing GpuStruct
* Documentation udpates
* Remove test_reduce_struct_type from test_reduce.py
* Revert to `to_cccl_value()` accepting ndarray + GpuStruct
* Bump copyrights
---------
Co-authored-by: Ashwin Srinath <shwina@users.noreply.github.com>1 parent cae9d85 commit 0bb4d73
2 files changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 92 | + | |
99 | 93 | | |
100 | 94 | | |
101 | 95 | | |
| |||
110 | 104 | | |
111 | 105 | | |
112 | 106 | | |
113 | | - | |
| 107 | + | |
114 | 108 | | |
115 | 109 | | |
116 | 110 | | |
| |||
132 | 126 | | |
133 | 127 | | |
134 | 128 | | |
135 | | - | |
| 129 | + | |
136 | 130 | | |
137 | 131 | | |
138 | 132 | | |
| |||
0 commit comments