Table of Contents

Struct CudaManagedMemoryPrefetchRange

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

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

memory CudaManagedMemory

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

destinationDevice int

The 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

memory CudaManagedMemory

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

offset int

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

count int

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

destinationDevice int

The destination CUDA device ordinal. 目标 CUDA 设备序号。

Properties

Count

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

public int Count { get; }

Property Value

int

DestinationDevice

Gets the destination CUDA device ordinal. 获取目标 CUDA 设备序号。

public int DestinationDevice { 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