Table of Contents

Class CudaRtcProgram

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Owns a reusable native NVRTC program boundary without exposing the native handle. 拥有可复用 native NVRTC program 边界且不暴露 native handle。

public sealed class CudaRtcProgram : IDisposable
Inheritance
CudaRtcProgram
Implements
Inherited Members

Constructors

CudaRtcProgram(CudaRtcProgramSource)

Creates an owner from an immutable copied source snapshot. 从不可变复制型 source 快照创建 owner。

public CudaRtcProgram(CudaRtcProgramSource source)

Parameters

source CudaRtcProgramSource

Properties

Source

Gets the immutable managed source snapshot. 获取不可变托管 source 快照。

public CudaRtcProgramSource Source { get; }

Property Value

CudaRtcProgramSource

Methods

Compile(CudaRtcCompileOptions?)

Compiles with a copied option snapshot; compiler failures are returned with their full log. 使用复制型 option 快照编译;compiler failure 会连同完整日志返回。

public CudaRtcCompilationResult Compile(CudaRtcCompileOptions? options = null)

Parameters

options CudaRtcCompileOptions

Returns

CudaRtcCompilationResult

Dispose()

Releases the native program owner. 释放 native program owner。

public void Dispose()