For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Python class
Usage
Usageβ
class max.driver.Usage(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases: Flag
Allocation-intent descriptor for Buffer.
Flags compose with | and are tested with in. max.driver
owns the flag set and its per-backend mapping.
DEFAULTβ
DEFAULT = 0
device memory for a non-host device, ordinary host memory for the CPU.
-
Type:
-
The allocation Buffer performs today
STAGINGβ
STAGING = 1
Host memory for staging transfers to and from the given device. May be page-locked, depending on the backend.
UNTRACKEDβ
UNTRACKED = 2
Memory opting out of host side hazard tracking. Useless unless paired with STAGING.