Class CudaRtcCompileOptions
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
targetArchitecturestringgenerateLineInfobooldeviceDebugbooluseFastMathboolrelocatableDeviceCodeboolemitLtoIrbooladditionalOptionsIEnumerable<string>
Properties
Default
Gets an empty default option snapshot. 获取空的默认 option 快照。
public static CudaRtcCompileOptions Default { get; }
Property Value
DeviceDebug
Gets whether device debug output is requested. 获取是否请求 device debug 输出。
public bool DeviceDebug { get; }
Property Value
EmitLtoIr
Gets whether LTO IR generation is requested. 获取是否请求 LTO IR。
public bool EmitLtoIr { get; }
Property Value
GenerateLineInfo
Gets whether line information is requested. 获取是否请求行号信息。
public bool GenerateLineInfo { get; }
Property Value
Options
Gets the complete retained option list in compiler order. 获取按编译器顺序保留的完整 option 列表。
public IReadOnlyList<string> Options { get; }
Property Value
RelocatableDeviceCode
Gets whether relocatable device code is enabled. 获取是否启用 relocatable device code。
public bool RelocatableDeviceCode { get; }
Property Value
TargetArchitecture
Gets the requested compute or SM architecture. 获取请求的 compute 或 SM architecture。
public string TargetArchitecture { get; }
Property Value
UseFastMath
Gets whether fast math is enabled. 获取是否启用 fast math。
public bool UseFastMath { get; }