Table of Contents

Class CudaRuntimeLogs

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Provides copied access to CUDA runtime logs without exposing callbacks or native buffers. 提供 CUDA runtime 日志的复制型访问,不暴露 callback 或 native buffer。

public static class CudaRuntimeLogs
Inheritance
CudaRuntimeLogs
Inherited Members

Fields

MaximumBufferSize

The maximum buffer size accepted by CUDA's log dump API. CUDA 日志 dump API 接受的最大缓冲区大小。

public const int MaximumBufferSize = 25600

Field Value

int

Methods

DumpToFile(CudaLogCursor, string)

Dumps CUDA logs from a cursor to a UTF-8 file path and returns the advanced cursor. 从 cursor 开始将 CUDA 日志 dump 到 UTF-8 文件路径,并返回推进后的 cursor。

public static CudaLogCursor DumpToFile(CudaLogCursor cursor, string path)

Parameters

cursor CudaLogCursor
path string

Returns

CudaLogCursor

DumpToFile(string)

Dumps all available CUDA logs to a UTF-8 file path. 将全部可用 CUDA 日志 dump 到 UTF-8 文件路径。

public static void DumpToFile(string path)

Parameters

path string

DumpToMemory(CudaLogCursor, int)

Dumps CUDA logs starting at a cursor and returns the advanced cursor. 从 cursor 开始 dump CUDA 日志并返回推进后的 cursor。

public static CudaLogSnapshot DumpToMemory(CudaLogCursor cursor, int bufferSize = 25600)

Parameters

cursor CudaLogCursor
bufferSize int

Returns

CudaLogSnapshot

DumpToMemory(int)

Dumps available CUDA logs into a managed UTF-8 snapshot. 将可用 CUDA 日志 dump 到托管 UTF-8 快照。

public static CudaLogSnapshot DumpToMemory(int bufferSize = 25600)

Parameters

bufferSize int

Returns

CudaLogSnapshot

GetCurrentCursor()

Gets a cursor positioned at the current tail of the CUDA log buffer. 获取位于 CUDA 日志缓冲区当前末尾的 cursor。

public static CudaLogCursor GetCurrentCursor()

Returns

CudaLogCursor