Commit 5f2e26f
authored
[STF] Make green context places independent from async_resources_handle (#7937)
* Introduce a PIMPL idiom in the stream_pool class
* Extract stream related utilities from async_resources_handle.cuh, and from utility/stream_to_dev.cuh to put them in a header located in places/
* Restore some methods which were erased by mistake
* Fix compilation
* - stream pools no longer belong to the async_resources_handle but are stored directly along with the execution places
- create an actual exec_place_device class instead of relying on base exec_place type
* remove get_stream_from_pool which is unnecessary
* Fix where pool_size variable gets read from
* async_resources_handle.cuh is not needed in places.cuh anymore
* use the appropriate (sufficient) header
* Make green context place implementation independent from async_resources_handle
* only put green context methods with CUDA 12.4+
* Add missing header1 parent 09b7323 commit 5f2e26f
File tree
12 files changed
+119
-155
lines changed- cudax/include/cuda/experimental/__stf
- graph
- internal
- places
- exec
- stream
- interfaces
- internal
12 files changed
+119
-155
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
| 631 | + | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| |||
Lines changed: 19 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 53 | | |
62 | 54 | | |
63 | 55 | | |
| |||
118 | 110 | | |
119 | 111 | | |
120 | 112 | | |
| 113 | + | |
121 | 114 | | |
122 | 115 | | |
123 | 116 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 117 | + | |
128 | 118 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 119 | | |
| 120 | + | |
145 | 121 | | |
146 | 122 | | |
147 | 123 | | |
148 | 124 | | |
149 | 125 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | 126 | | |
155 | 127 | | |
156 | 128 | | |
| 129 | + | |
157 | 130 | | |
| 131 | + | |
158 | 132 | | |
159 | 133 | | |
160 | 134 | | |
| |||
173 | 147 | | |
174 | 148 | | |
175 | 149 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 150 | | |
183 | 151 | | |
184 | 152 | | |
| |||
192 | 160 | | |
193 | 161 | | |
194 | 162 | | |
| 163 | + | |
195 | 164 | | |
196 | 165 | | |
197 | 166 | | |
| |||
201 | 170 | | |
202 | 171 | | |
203 | 172 | | |
204 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
205 | 184 | | |
206 | 185 | | |
207 | 186 | | |
| |||
210 | 189 | | |
211 | 190 | | |
212 | 191 | | |
| 192 | + | |
213 | 193 | | |
214 | 194 | | |
215 | 195 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
913 | | - | |
| 913 | + | |
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments