1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Memory locality tiers.
/// Memory tier classification.
///
/// Host-allocatable tiers (`Dram`, `Hbm`, `Gddr`, `HostPinned`, `Device`,
/// `Persistent`) are valid allocation targets for allocators such as
/// mnemosyne. The device-side tiers `Registers` and `SharedMem` are
/// **budgeted, non-host-allocatable** (atlas ADR 0002): GPU compilers assign
/// registers and kernels declare shared memory at launch, so these variants
/// exist purely as the typed vocabulary for capacity queries and kernel
/// resource budgets (occupancy planning) — never as allocation requests.
/// [`MemoryTier::is_host_allocatable`] encodes the distinction.