Class CudaRuntimeInfo
Runtime-level CUDA bridge information. CUDA bridge 的 runtime 层信息。
public sealed class CudaRuntimeInfo
- Inheritance
-
CudaRuntimeInfo
- Inherited Members
Constructors
CudaRuntimeInfo(bool, bool, bool, bool, int, int, int, string)
Initializes a snapshot of CUDA runtime capability information. 初始化一份 CUDA runtime 能力信息快照。
public CudaRuntimeInfo(bool vendorDependencyAvailable, bool supportsStreams, bool supportsEvents, bool supportsMemory, int runtimeVersion, int driverVersion, int deviceCount, string statusMessage)
Parameters
vendorDependencyAvailableboolWhether vendor CUDA dependencies are available. 是否可用厂商 CUDA 依赖。
supportsStreamsboolWhether stream APIs are supported. 是否支持 stream API。
supportsEventsboolWhether event APIs are supported. 是否支持 event API。
supportsMemoryboolWhether memory APIs are supported. 是否支持 memory API。
runtimeVersionintThe CUDA runtime version. CUDA runtime 版本。
driverVersionintThe CUDA driver version. CUDA driver 版本。
deviceCountintThe visible CUDA device count. 可见 CUDA 设备数量。
statusMessagestringThe status or diagnostic message. 状态或诊断消息。
Properties
DeviceCount
Gets the visible CUDA device count. 获取可见 CUDA 设备数量。
public int DeviceCount { get; }
Property Value
DriverVersion
Gets the CUDA driver version. 获取 CUDA driver 版本。
public int DriverVersion { get; }
Property Value
RuntimeVersion
Gets the CUDA runtime version. 获取 CUDA runtime 版本。
public int RuntimeVersion { get; }
Property Value
StatusMessage
Gets the status or diagnostic message. 获取状态或诊断消息。
public string StatusMessage { get; }
Property Value
SupportsEvents
Gets whether event APIs are supported by the loaded runtime. 获取当前加载的 runtime 是否支持 event API。
public bool SupportsEvents { get; }
Property Value
SupportsMemory
Gets whether memory APIs are supported by the loaded runtime. 获取当前加载的 runtime 是否支持 memory API。
public bool SupportsMemory { get; }
Property Value
SupportsStreams
Gets whether stream APIs are supported by the loaded runtime. 获取当前加载的 runtime 是否支持 stream API。
public bool SupportsStreams { get; }
Property Value
VendorDependencyAvailable
Gets whether vendor CUDA dependencies are currently available. 获取当前是否可用厂商 CUDA 依赖。
public bool VendorDependencyAvailable { get; }