IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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)

source

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

source

device memory for a non-host device, ordinary host memory for the CPU.

Type:

The allocation Buffer performs today

STAGING​

STAGING = 1

source

Host memory for staging transfers to and from the given device. May be page-locked, depending on the backend.

UNTRACKED​

UNTRACKED = 2

source

Memory opting out of host side hazard tracking. Useless unless paired with STAGING.