Commit d6f60f2
refactor(cuda.core): move managed_memory ops to cuda.core.utils
Per Leo's review request (#1775 (comment)),
fold the managed-memory free functions and the Location dataclass into
cuda.core.utils rather than maintaining a dedicated cuda.core.managed_memory
namespace.
- Re-export Location, advise, prefetch, discard, discard_prefetch from
cuda.core.utils.
- Delete cuda.core.managed_memory module.
- Update cuda.core.__init__ to drop the managed_memory submodule import.
- Update tests to import from cuda.core.utils.
- Update api.rst: drop the dedicated Managed memory section; add the
managed-memory entries to the Utility functions section.
- Update 1.0.0-notes.rst accordingly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ee96758 commit d6f60f2
6 files changed
Lines changed: 79 additions & 95 deletions
File tree
- cuda_core
- cuda/core
- docs/source
- release
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 132 | | |
151 | 133 | | |
152 | 134 | | |
| |||
265 | 247 | | |
266 | 248 | | |
267 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
268 | 254 | | |
269 | 255 | | |
270 | 256 | | |
| 257 | + | |
271 | 258 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments