Table of Contents

Class CudaRtcProgramSource

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Immutable NVRTC source, virtual headers, and name expressions. 不可变的 NVRTC 源码、虚拟 header 与 name expression。

public sealed class CudaRtcProgramSource
Inheritance
CudaRtcProgramSource
Inherited Members

Constructors

CudaRtcProgramSource(string, string, IEnumerable<CudaRtcHeader>?, IEnumerable<string>?)

Creates an immutable program-source snapshot. 创建不可变 program source 快照。

public CudaRtcProgramSource(string source, string programName = "program.cu", IEnumerable<CudaRtcHeader>? headers = null, IEnumerable<string>? nameExpressions = null)

Parameters

source string
programName string
headers IEnumerable<CudaRtcHeader>
nameExpressions IEnumerable<string>

Properties

Headers

Gets the copied virtual headers in stable order. 获取稳定顺序的虚拟 header 副本。

public IReadOnlyList<CudaRtcHeader> Headers { get; }

Property Value

IReadOnlyList<CudaRtcHeader>

NameExpressions

Gets name expressions in stable order. 获取稳定顺序的 name expression。

public IReadOnlyList<string> NameExpressions { get; }

Property Value

IReadOnlyList<string>

ProgramName

Gets the virtual program name used in diagnostics. 获取诊断中使用的虚拟 program 名称。

public string ProgramName { get; }

Property Value

string

Source

Gets the copied CUDA C++ source. 获取复制的 CUDA C++ 源码。

public string Source { get; }

Property Value

string