Table of Contents

Class CudaDeviceInfo

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

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

ordinal int
name string
major int
minor int
multiProcessorCount int
warpSize int
maxThreadsPerBlock int
canMapHostMemory bool
integrated bool
totalGlobalMemory ulong

Properties

CanMapHostMemory

Gets whether the device can map host memory. 获取设备是否支持映射 host memory。

public bool CanMapHostMemory { get; }

Property Value

bool

Integrated

Gets whether the device is integrated. 获取设备是否为集成型 GPU。

public bool Integrated { get; }

Property Value

bool

Major

Gets the CUDA compute capability major version. 获取 CUDA 计算能力主版本号。

public int Major { get; }

Property Value

int

MaxThreadsPerBlock

Gets the maximum threads per block. 获取每个 block 支持的最大线程数。

public int MaxThreadsPerBlock { get; }

Property Value

int

Minor

Gets the CUDA compute capability minor version. 获取 CUDA 计算能力次版本号。

public int Minor { get; }

Property Value

int

MultiProcessorCount

Gets the number of streaming multiprocessors. 获取流式多处理器数量。

public int MultiProcessorCount { get; }

Property Value

int

Name

Gets the CUDA device name. 获取 CUDA 设备名称。

public string Name { get; }

Property Value

string

Ordinal

Gets the CUDA device ordinal. 获取 CUDA 设备序号。

public int Ordinal { get; }

Property Value

int

TotalGlobalMemory

Gets the total global memory in bytes. 获取总 global memory 大小,单位字节。

public ulong TotalGlobalMemory { get; }

Property Value

ulong

WarpSize

Gets the warp size reported by CUDA. 获取 CUDA 报告的 warp 大小。

public int WarpSize { get; }

Property Value

int