Commit 7dec14a
Avoid defining RpcCUDAFuture subclass in TensorPipe agent (pytorch#56513)
Summary:
Pull Request resolved: pytorch#56513
The RpcCUDAFuture class existed solely to support extracting DataPtrs from a Message class. However, this can be done more simply by using a vanilla CUDAFuture and just extracting those DataPtrs before marking it complete and passing them to markCompleted.
This allows to make the DataPtr extraction logic of CUDAFuture private again.
ghstack-source-id: 127035771
Test Plan: Unit tests
Reviewed By: mrshenli
Differential Revision: D27861064
fbshipit-source-id: b0b4df2cab7be6b4b16d5cfc888483c18fbce60e1 parent 5ddc269 commit 7dec14a
File tree
3 files changed
+11
-27
lines changed- aten/src/ATen/cuda
- torch/csrc/distributed/rpc
3 files changed
+11
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
148 | | - | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1321 | 1321 | | |
1322 | 1322 | | |
1323 | 1323 | | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1324 | 1328 | | |
1325 | | - | |
| 1329 | + | |
| 1330 | + | |
1326 | 1331 | | |
1327 | 1332 | | |
1328 | 1333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 279 | | |
302 | 280 | | |
303 | 281 | | |
| |||
308 | 286 | | |
309 | 287 | | |
310 | 288 | | |
311 | | - | |
| 289 | + | |
| 290 | + | |
312 | 291 | | |
313 | 292 | | |
314 | 293 | | |
| |||
0 commit comments