Table of Contents

Class CudaRtcCompileOptions

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Immutable validated NVRTC option snapshot. 不可变且已验证的 NVRTC option 快照。

public sealed class CudaRtcCompileOptions
Inheritance
CudaRtcCompileOptions
Inherited Members

Constructors

CudaRtcCompileOptions(string?, bool, bool, bool, bool, bool, IEnumerable<string>?)

Creates a bounded compile-option snapshot. 创建有界 compile option 快照。

public CudaRtcCompileOptions(string? targetArchitecture = null, bool generateLineInfo = false, bool deviceDebug = false, bool useFastMath = false, bool relocatableDeviceCode = false, bool emitLtoIr = false, IEnumerable<string>? additionalOptions = null)

Parameters

targetArchitecture string
generateLineInfo bool
deviceDebug bool
useFastMath bool
relocatableDeviceCode bool
emitLtoIr bool
additionalOptions IEnumerable<string>

Properties

Default

Gets an empty default option snapshot. 获取空的默认 option 快照。

public static CudaRtcCompileOptions Default { get; }

Property Value

CudaRtcCompileOptions

DeviceDebug

Gets whether device debug output is requested. 获取是否请求 device debug 输出。

public bool DeviceDebug { get; }

Property Value

bool

EmitLtoIr

Gets whether LTO IR generation is requested. 获取是否请求 LTO IR。

public bool EmitLtoIr { get; }

Property Value

bool

GenerateLineInfo

Gets whether line information is requested. 获取是否请求行号信息。

public bool GenerateLineInfo { get; }

Property Value

bool

Options

Gets the complete retained option list in compiler order. 获取按编译器顺序保留的完整 option 列表。

public IReadOnlyList<string> Options { get; }

Property Value

IReadOnlyList<string>

RelocatableDeviceCode

Gets whether relocatable device code is enabled. 获取是否启用 relocatable device code。

public bool RelocatableDeviceCode { get; }

Property Value

bool

TargetArchitecture

Gets the requested compute or SM architecture. 获取请求的 compute 或 SM architecture。

public string TargetArchitecture { get; }

Property Value

string

UseFastMath

Gets whether fast math is enabled. 获取是否启用 fast math。

public bool UseFastMath { get; }

Property Value

bool