Struct CudaManagedMemoryPrefetchRange
Describes an owner-bound CUDA managed-memory range and its prefetch destination. 描述与 owner 绑定的 CUDA managed memory 范围及其预取目标设备。
public readonly struct CudaManagedMemoryPrefetchRange
- Inherited Members
Constructors
CudaManagedMemoryPrefetchRange(CudaManagedMemory, int)
Creates a prefetch range covering an entire managed-memory allocation. 创建覆盖整个 managed memory 分配的预取范围。
public CudaManagedMemoryPrefetchRange(CudaManagedMemory memory, int destinationDevice)
Parameters
memoryCudaManagedMemoryThe managed-memory owner. 托管内存 owner。
destinationDeviceintThe destination CUDA device ordinal. 目标 CUDA 设备序号。
CudaManagedMemoryPrefetchRange(CudaManagedMemory, int, int, int)
Creates an owner-bound managed-memory prefetch subrange. 创建与 owner 绑定的 managed memory 预取子范围。
public CudaManagedMemoryPrefetchRange(CudaManagedMemory memory, int offset, int count, int destinationDevice)
Parameters
memoryCudaManagedMemoryThe managed-memory owner. 托管内存 owner。
offsetintThe byte offset within the allocation. 分配内的字节偏移。
countintThe range length in bytes. 范围长度,单位为字节。
destinationDeviceintThe destination CUDA device ordinal. 目标 CUDA 设备序号。
Properties
Count
Gets the range length in bytes. 获取范围长度,单位为字节。
public int Count { get; }
Property Value
DestinationDevice
Gets the destination CUDA device ordinal. 获取目标 CUDA 设备序号。
public int DestinationDevice { get; }
Property Value
Memory
Gets the managed-memory owner. 获取 managed memory owner。
public CudaManagedMemory Memory { get; }
Property Value
Offset
Gets the byte offset within the allocation. 获取分配内的字节偏移。
public int Offset { get; }