Table of Contents

Class CudaStreamCaptureToGraphSession

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Owns the lifetime boundary for capture into an existing CUDA graph. 管理写入已有 CUDA graph 的 capture 生命周期边界。

public sealed class CudaStreamCaptureToGraphSession : IDisposable
Inheritance
CudaStreamCaptureToGraphSession
Implements
Inherited Members

Properties

Graph

Gets the graph that remains the owner after the session ends. 获取 session 结束后继续拥有资源的 graph。

public CudaGraph Graph { get; }

Property Value

CudaGraph

IsEnded

Gets whether End or Dispose has closed the capture session. 获取 End 或 Dispose 是否已经关闭 capture session。

public bool IsEnded { get; }

Property Value

bool

Methods

Dispose()

Ends an active capture session before releasing its owner references. 在释放 owner 引用前结束 active capture session。

public void Dispose()

End()

Ends capture and verifies that CUDA returned the same graph handle. 结束 capture,并验证 CUDA 返回的仍是同一个 graph 句柄。

public void End()