Commit 608be98
committed
RDMA no longer needs torch
Pull Request resolved: #2045
This replaces the internal C++ APIs to torch with an interace for injecting the scanned segments. We then use a pyo3 function that indirectly calls the python torch.cuda.memory._snapshot function to get the same information.
So we no longer need rdma to directly link torch.
ghstack-source-id: 327462736
@exported-using-ghexport
Differential Revision: [D88338646](https://our.internmc.facebook.com/intern/diff/D88338646/)1 parent 43604d5 commit 608be98
File tree
21 files changed
+283
-488
lines changed- .github/workflows
- cuda-sys
- src
- monarch_rdma
- examples/cuda_ping_pong/src
- extension
- src
- python/monarch
- _rust_bindings
- _src/rdma
- rdmaxcel-sys
- src
21 files changed
+283
-488
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
This file was deleted.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| |||
0 commit comments