cuda.core.ManagedMemoryResourceOptions#
- class cuda.core.ManagedMemoryResourceOptions( )#
Customizable
ManagedMemoryResourceoptions.- preferred_location#
A location identifier (device ordinal or NUMA node ID) whose meaning depends on
preferred_location_type. (Default toNone)- Type:
int | None, optional
- preferred_location_type#
Controls how
preferred_locationis interpreted.When set to
None(the default), legacy behavior is used:preferred_locationis interpreted as a device ordinal,-1for host, orNonefor no preference.When set explicitly, the type determines both the kind of preferred location and the valid values for
preferred_location:"device": prefer a specific GPU.preferred_locationmust be a device ordinal (>= 0)."host": prefer host memory (OS-managed NUMA placement).preferred_locationmust beNone."host_numa": prefer a specific host NUMA node.preferred_locationmust be a NUMA node ID (>= 0), orNoneto derive the NUMA node from the current CUDA device’shost_numa_idattribute (requires an active CUDA context).
(Default to
None)- Type:
"device"|"host"|"host_numa"| None, optional