Table of Contents

Class CudaDeviceProperties

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Aggregates deployment-relevant CUDA device properties and optional runtime attributes. 聚合模型部署相关的 CUDA 设备属性以及可选 runtime attribute。

public sealed class CudaDeviceProperties
Inheritance
CudaDeviceProperties
Inherited Members

Constructors

CudaDeviceProperties(CudaDeviceInfo, IReadOnlyList<int>, IReadOnlyList<int>, int?, int?, int?, int?, int?, int?, bool?, bool?, bool?, bool?, bool?, bool?, bool?, bool?)

Creates a CUDA device property snapshot. 创建 CUDA 设备属性快照。

public CudaDeviceProperties(CudaDeviceInfo info, IReadOnlyList<int> maxBlockDimensions, IReadOnlyList<int> maxGridDimensions, int? clockRateKilohertz, int? memoryClockRateKilohertz, int? globalMemoryBusWidthBits, int? l2CacheSizeBytes, int? maxThreadsPerMultiProcessor, int? asyncEngineCount, bool? concurrentKernels, bool? unifiedAddressing, bool? managedMemory, bool? concurrentManagedAccess, bool? streamPrioritiesSupported, bool? computePreemptionSupported, bool? hostRegisterSupported, bool? directManagedMemoryAccessFromHost)

Parameters

info CudaDeviceInfo
maxBlockDimensions IReadOnlyList<int>
maxGridDimensions IReadOnlyList<int>
clockRateKilohertz int?
memoryClockRateKilohertz int?
globalMemoryBusWidthBits int?
l2CacheSizeBytes int?
maxThreadsPerMultiProcessor int?
asyncEngineCount int?
concurrentKernels bool?
unifiedAddressing bool?
managedMemory bool?
concurrentManagedAccess bool?
streamPrioritiesSupported bool?
computePreemptionSupported bool?
hostRegisterSupported bool?
directManagedMemoryAccessFromHost bool?

Properties

AsyncEngineCount

Gets the number of async copy engines when available. 获取可用时异步拷贝引擎数量。

public int? AsyncEngineCount { get; }

Property Value

int?

ClockRateKilohertz

Gets the device core clock rate in kHz when available. 获取可用时的设备核心频率,单位 kHz。

public int? ClockRateKilohertz { get; }

Property Value

int?

ComputeCapabilityLabel

Gets a concise device capability label such as "sm_86". 获取简洁设备能力标识,例如 "sm_86"。

public string ComputeCapabilityLabel { get; }

Property Value

string

ComputePreemptionSupported

Gets whether compute preemption is supported when available. 获取可用时设备是否支持计算抢占。

public bool? ComputePreemptionSupported { get; }

Property Value

bool?

ConcurrentKernels

Gets whether concurrent kernels are supported when available. 获取可用时设备是否支持并发 kernel。

public bool? ConcurrentKernels { get; }

Property Value

bool?

ConcurrentManagedAccess

Gets whether concurrent managed-memory access is supported when available. 获取可用时设备是否支持并发 managed-memory 访问。

public bool? ConcurrentManagedAccess { get; }

Property Value

bool?

DirectManagedMemoryAccessFromHost

Gets whether the host can directly access managed memory when available. 获取可用时主机是否可以直接访问 managed memory。

public bool? DirectManagedMemoryAccessFromHost { get; }

Property Value

bool?

GlobalMemoryBusWidthBits

Gets the global memory bus width in bits when available. 获取可用时的显存总线宽度,单位 bit。

public int? GlobalMemoryBusWidthBits { get; }

Property Value

int?

HostRegisterSupported

Gets whether host memory registration is supported when available. 获取可用时设备是否支持 host memory registration。

public bool? HostRegisterSupported { get; }

Property Value

bool?

Info

Gets the base CUDA device info returned by the bridge. 获取桥接层返回的 CUDA 设备基础信息。

public CudaDeviceInfo Info { get; }

Property Value

CudaDeviceInfo

L2CacheSizeBytes

Gets the L2 cache size in bytes when available. 获取可用时的 L2 cache 大小,单位字节。

public int? L2CacheSizeBytes { get; }

Property Value

int?

ManagedMemory

Gets whether CUDA managed memory is supported when available. 获取可用时设备是否支持 CUDA managed memory。

public bool? ManagedMemory { get; }

Property Value

bool?

MaxBlockDimensions

Gets the maximum CUDA block dimensions as X/Y/Z. 获取 CUDA block 维度上限,顺序为 X/Y/Z。

public IReadOnlyList<int> MaxBlockDimensions { get; }

Property Value

IReadOnlyList<int>

MaxGridDimensions

Gets the maximum CUDA grid dimensions as X/Y/Z. 获取 CUDA grid 维度上限,顺序为 X/Y/Z。

public IReadOnlyList<int> MaxGridDimensions { get; }

Property Value

IReadOnlyList<int>

MaxThreadsPerMultiProcessor

Gets the maximum threads per streaming multiprocessor when available. 获取可用时每个 SM 支持的最大线程数。

public int? MaxThreadsPerMultiProcessor { get; }

Property Value

int?

MemoryClockRateKilohertz

Gets the memory clock rate in kHz when available. 获取可用时的显存频率,单位 kHz。

public int? MemoryClockRateKilohertz { get; }

Property Value

int?

StreamPrioritiesSupported

Gets whether stream priorities are supported when available. 获取可用时设备是否支持 stream priority。

public bool? StreamPrioritiesSupported { get; }

Property Value

bool?

UnifiedAddressing

Gets whether unified virtual addressing is supported when available. 获取可用时设备是否支持统一虚拟地址。

public bool? UnifiedAddressing { get; }

Property Value

bool?