Class CudaDeviceInfo
Describes one CUDA device as reported by the bridge. 描述桥接层返回的单个 CUDA 设备信息。
public sealed class CudaDeviceInfo
- Inheritance
-
CudaDeviceInfo
- Inherited Members
Constructors
CudaDeviceInfo(int, string, int, int, int, int, int, bool, bool, ulong)
Creates a CUDA device information snapshot. 创建 CUDA 设备信息快照。
public CudaDeviceInfo(int ordinal, string name, int major, int minor, int multiProcessorCount, int warpSize, int maxThreadsPerBlock, bool canMapHostMemory, bool integrated, ulong totalGlobalMemory)
Parameters
ordinalintnamestringmajorintminorintmultiProcessorCountintwarpSizeintmaxThreadsPerBlockintcanMapHostMemoryboolintegratedbooltotalGlobalMemoryulong
Properties
CanMapHostMemory
Gets whether the device can map host memory. 获取设备是否支持映射 host memory。
public bool CanMapHostMemory { get; }
Property Value
Integrated
Gets whether the device is integrated. 获取设备是否为集成型 GPU。
public bool Integrated { get; }
Property Value
Major
Gets the CUDA compute capability major version. 获取 CUDA 计算能力主版本号。
public int Major { get; }
Property Value
MaxThreadsPerBlock
Gets the maximum threads per block. 获取每个 block 支持的最大线程数。
public int MaxThreadsPerBlock { get; }
Property Value
Minor
Gets the CUDA compute capability minor version. 获取 CUDA 计算能力次版本号。
public int Minor { get; }
Property Value
MultiProcessorCount
Gets the number of streaming multiprocessors. 获取流式多处理器数量。
public int MultiProcessorCount { get; }
Property Value
Name
Gets the CUDA device name. 获取 CUDA 设备名称。
public string Name { get; }
Property Value
Ordinal
Gets the CUDA device ordinal. 获取 CUDA 设备序号。
public int Ordinal { get; }
Property Value
TotalGlobalMemory
Gets the total global memory in bytes. 获取总 global memory 大小,单位字节。
public ulong TotalGlobalMemory { get; }
Property Value
WarpSize
Gets the warp size reported by CUDA. 获取 CUDA 报告的 warp 大小。
public int WarpSize { get; }