Commit f9df16f
authored
Memory refactor (#1205)
* Resolve a Cython build warning.
* Make memory module into a package.
* Rename cyStream to _cyStream for consistency.
* Move defs to memory.pxd header
* Separate VMM.
* Weaken dependencies from device to memory module.
* Move LegacyPinnedMemoryResource to a submodule.
* Move _SynchronousMemoryResource into a submodule.
* Partly separates the IPC implementation.
* Move IPC registry to ipc module.
* Collect and reorder DeviceMemoryResource properties.
* Move more IPC implementation out of DeviceMemoryResource.
* Minor refactoring.
* Move Buffer IPC implementation.
* Simplify the class hierarchy (remove _cyBuffer and _cyMemoryResource).
* Refactor to shrink Cython interface.
* Simplify Buffer close.
* Refactor DeviceMemoryResource.__init__.
* Move Buffer into a separate module.
* Refactors DeviceMemoryResource IPC implementation.
* Removes superfluous _uuid member of DeviceMemoryResource.
* Adds __all__ lists.
* Prepend underscore to submodules, add a test for package contents.
* Refactor IPC data of DMR into IPCData class.
* General clean up.
* Touch-ups
* Cythonize DeviceMemoryResourceAttributes.
* Restore previous behavior for DMR.from_allocation_handle when passed a file descriptor (caller closes the fd).
* Rename _mr to _memory_resource. Change pointer types from intptr_t to uintptr_t.
* Rename files _dmr.* and _vmm.py to avoid abbreviations.1 parent 3e0d883 commit f9df16f
File tree
15 files changed
+1929
-1618
lines changed- cuda_core
- cuda/core/experimental
- _memory
- tests
15 files changed
+1929
-1618
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
30 | | - | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
996 | 995 | | |
997 | 996 | | |
998 | 997 | | |
| 998 | + | |
999 | 999 | | |
1000 | 1000 | | |
| 1001 | + | |
1001 | 1002 | | |
1002 | 1003 | | |
1003 | 1004 | | |
| |||
1131 | 1132 | | |
1132 | 1133 | | |
1133 | 1134 | | |
| 1135 | + | |
1134 | 1136 | | |
1135 | 1137 | | |
1136 | 1138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
287 | 286 | | |
288 | 287 | | |
289 | 288 | | |
290 | | - | |
| 289 | + | |
291 | 290 | | |
292 | 291 | | |
293 | 292 | | |
| |||
0 commit comments