Table of Contents

Struct CudaManagedMemoryRange

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

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

memory CudaManagedMemory

The 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

memory CudaManagedMemory

The managed-memory owner. 托管内存 owner。

offset int

The byte offset within the allocation. 分配内的字节偏移。

count int

The range length in bytes. 范围长度,单位为字节。

Properties

Count

Gets the range length in bytes. 获取范围长度,单位为字节。

public int Count { get; }

Property Value

int

Memory

Gets the managed-memory owner. 获取 managed memory owner。

public CudaManagedMemory Memory { get; }

Property Value

CudaManagedMemory

Offset

Gets the byte offset within the allocation. 获取分配内的字节偏移。

public int Offset { get; }

Property Value

int