Class CudaRuntimeLogs
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
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
cursorCudaLogCursorpathstring
Returns
DumpToFile(string)
Dumps all available CUDA logs to a UTF-8 file path. 将全部可用 CUDA 日志 dump 到 UTF-8 文件路径。
public static void DumpToFile(string path)
Parameters
pathstring
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
cursorCudaLogCursorbufferSizeint
Returns
DumpToMemory(int)
Dumps available CUDA logs into a managed UTF-8 snapshot. 将可用 CUDA 日志 dump 到托管 UTF-8 快照。
public static CudaLogSnapshot DumpToMemory(int bufferSize = 25600)
Parameters
bufferSizeint
Returns
GetCurrentCursor()
Gets a cursor positioned at the current tail of the CUDA log buffer. 获取位于 CUDA 日志缓冲区当前末尾的 cursor。
public static CudaLogCursor GetCurrentCursor()