cuda.core.managed_memory.discard_prefetch#
- cuda.core.managed_memory.discard_prefetch(
- Buffer target: Buffer,
- location: Device | int | None = None,
- *,
- stream: Stream | GraphBuilder,
- str location_type: str | None = None,
Discard a managed-memory allocation range and prefetch it to a target location.
- Parameters:
target (
Buffer) – Managed allocation to operate on.location (
Device| int | None, optional) – Target location. Whenlocation_typeisNone, values are interpreted as a device ordinal,-1for host, orNone. A location is required for discard_prefetch.stream (
Stream|GraphBuilder) – Keyword argument specifying the stream for the asynchronous operation.location_type (str | None, optional) – Explicit location kind. Supported values are
"device","host","host_numa", and"host_numa_current".