Table of Contents

Class CudaIpcMemoryExportDescriptor

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Immutable transport descriptor for an exported CUDA IPC memory allocation. 导出 CUDA IPC memory allocation 的不可变传输 descriptor。

public sealed class CudaIpcMemoryExportDescriptor
Inheritance
CudaIpcMemoryExportDescriptor
Inherited Members

Remarks

The size must describe the original base allocation exactly. Treat the descriptor as one authenticated transport unit and keep the exporting allocation alive until every importer has disposed its mapping. size 必须精确描述原始 base allocation。应将 descriptor 作为一个整体进行可信传输,并保持导出 allocation 存活,直到所有 importer 都已释放 mapping。

Properties

SizeInBytes

Gets the exported base-allocation size. 获取导出的 base allocation 大小。

public int SizeInBytes { get; }

Property Value

int

Token

Gets the copied opaque memory token. 获取复制型 opaque memory token。

public CudaIpcExportToken Token { get; }

Property Value

CudaIpcExportToken

Methods

FromBytes(byte[], int)

Creates a descriptor from transported bytes and allocation metadata. 从传输字节和 allocation 元数据创建 descriptor。

public static CudaIpcMemoryExportDescriptor FromBytes(byte[] tokenBytes, int sizeInBytes)

Parameters

tokenBytes byte[]

The opaque memory-token bytes. opaque memory token 字节。

sizeInBytes int

The exact exported allocation size. 导出 allocation 的精确大小。

Returns

CudaIpcMemoryExportDescriptor

An immutable transport descriptor. 不可变传输 descriptor。

ToString()

Returns a diagnostic summary without token contents. 返回不包含 token 内容的诊断摘要。

public override string ToString()

Returns

string