Typed managed-memory location.
Use the classmethod constructors (device, host, host_numa,
host_numa_current) rather than constructing directly.
Methods
-
__init__(
- kind: Literal['device', 'host', 'host_numa', 'host_numa_current'],
- id: int | None = None,
) → None
-
classmethod device(
- device_id: int,
) → Location
-
classmethod host() → Location
-
classmethod host_numa(
- numa_id: int,
) → Location
-
classmethod host_numa_current() → Location
Attributes
-
id: int | None = None
-
kind: Literal['device', 'host', 'host_numa', 'host_numa_current']