Struct CudaManagedMemoryRange
Describes an owner-bound subrange of a CUDA managed-memory allocation. 描述 CUDA managed memory 分配中与 owner 绑定的子范围。
public readonly struct CudaManagedMemoryRange
- Inherited Members
Constructors
CudaManagedMemoryRange(CudaManagedMemory)
Creates an owner-bound range covering an entire managed-memory allocation. 创建覆盖整个 managed memory 分配的 owner-bound 范围。
public CudaManagedMemoryRange(CudaManagedMemory memory)
Parameters
memoryCudaManagedMemoryThe managed-memory owner. 托管内存 owner。
CudaManagedMemoryRange(CudaManagedMemory, int, int)
Creates an owner-bound managed-memory subrange. 创建与 owner 绑定的 managed memory 子范围。
public CudaManagedMemoryRange(CudaManagedMemory memory, int offset, int count)
Parameters
memoryCudaManagedMemoryThe managed-memory owner. 托管内存 owner。
offsetintThe byte offset within the allocation. 分配内的字节偏移。
countintThe range length in bytes. 范围长度,单位为字节。
Properties
Count
Gets the range length in bytes. 获取范围长度,单位为字节。
public int Count { 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; }